首页 > Web开发 > 详细

php使用表单post方法进行页面

时间:2018-04-16 14:17:11      阅读:179      评论:0      收藏:0      [点我收藏+]
<?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的方式跳转

php使用表单post方法进行页面

原文:https://www.cnblogs.com/burningc/p/8855499.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!