HTML代码:下面就是一个简单的表单代码,将数据提交到01.php,使用get的方式 (推荐学习:PHP视频教程)
<form action="01.php" method="get" > <label for="">姓名: <input type="text" name= "userName"></label> <br/> <label for="">邮箱: <input type="text" name= "userEmail"></label> <br/> <input type="submit" name=""> </form>
PHP代码:
<?php echo "<h1>GET_PAGE</h1>"; echo 'userName:'.$_GET['userName']; echo '<br/>'; echo 'userEmail:'.$_GET['userEmail']; ?>
Copyright © 2019- igbc.cn 版权所有 湘ICP备2023023988号-5
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务