php教程之get传值方式-灵活性
php教程之get传值方式-灵活性get很灵活,只要有页面的跳转就可以传递参数post不灵活,post提交需要有表单的参与1、 html跳转 <a href="index.php?name=tom&age=20">跳转</a>
2、JS跳转<script type="text/javascript"> location.href='index.php?name=tom&age=20'; location.assign('index.php?name=tom&age=20'); location.replace('index.php?name=tom&age=20');</script>
3、PHP跳转header('location:index.php?name=tom&age=22')
页:
[1]