页面重定向跳转并post传参

$mdata=json_encode($mdata);//如果是字符串无需使用json
echo " <form style='display:none;' id='form1' name='form1' method='post' action='reward?sys={$this->mdata['sys']} ' >
<input name='mdata' type='text' value='{$mdata}' />
</form>
<script type='text/javascript'>function load_submit(){document.form1.submit()}load_submit();</script>";

 或者

echo "<form style='display:none;' id='form1' name='form1' method='post' action='{$url}'>
<input name='qb_username' type='text' value='{$arr["qb_username"]}' />
<input name='service' type='text' value='{$arr["service"]}'/>
<input name='require_time' type='text' value='{$arr["require_time"]}'/>
<input name='callbackurl' type='text' value='{$arr["callbackurl"]}'/>
<input name='sign' type='text' value='{$arr["sign"]}'/>
<input name='partner_no' type='text' value='{$arr["partner_no"]}'/>
</form>
<script type='text/javascript'>function load_submit(){document.form1.submit()}load_submit();</script>";

相关文章:

  • 2022-12-23
  • 2021-10-12
  • 2022-03-10
  • 2021-09-07
  • 2021-07-15
  • 2021-09-08
  • 2022-01-07
  • 2021-09-07
猜你喜欢
  • 2022-12-23
  • 2021-09-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2021-07-23
相关资源
相似解决方案