如何在另一页上显示输入字段的数据

我有电子邮件的输入字段, 我需要用户输入的数据才能显示在另一页上

<input style="width:456px; height:30px;" class="adv_onus_fields" name="adv_onus_email" autocomplete="off" type="email" placeholder="'.__("Email", "Advinim").'"/>

#1


你只需要将输入包装成表格并指定这样的目标即可。

<form action="/destination.php" method="get">
<input style="width:456px; height:30px;" class="adv_onus_fields" name="adv_onus_email" autocomplete="off" type="email" placeholder="'.__("Email", "Advinim").'"/>>
<input type="submit" value="Submit">   
</form>

在你要使用变量的页面上, 写$ _GET [‘adv_onus_email’]来访问它。

另一种方法是使用session_start()启动会话并将变量保存在$ _SESSION数组中。

来源:

https://www.srcmini02.com/63259.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_37660.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?