- <?php
- $action = 'http://www.cnblogs.com/burningc/';
- $method = 'post';
- $key = '';
- $val = '';
- $shtml = "<form id='submit'name='submit'action='".$action."'method='".$method."'>";
- $sHtml.= "<input type='hidden'name='".$key."'value='".$val."'/>";
- $sHtml = $sHtml."</form>";
- $sHtml = $sHtml."<script>document.forms['submit'].submit();</script>";
- echo $sHtml;
header('location:./test.php?i=1'); 跳转方式是以 get 的方式跳转
来源: http://www.bubuko.com/infodetail-2564262.html