gpt4 book ai didi

php - 为什么我得到 GET 方法?

转载 作者:行者123 更新时间:2023-11-30 02:29:43 24 4
gpt4 key购买 nike

我有一个带有这种形式的简单 html 代码:

 <form id="check-user" class="ui-body ui-body-a ui-corner-all" data-ajax="false" method="post" action="./second.php">
<fieldset>
<div data-role="fieldcontain">
<label for="username">Enter your username:</label>
<input type="text" value="" name="username" id="username"/>
</div>
<div data-role="fieldcontain">
<label for="password">Enter your password:</label>
<input type="password" value="" name="password" id="password"/>
</div>
<input type="submit" data-theme="b" name="submit" id="submit" value="Submit">
</fieldset>
</form>

在任何浏览器中,即使在我的手机中使用之前的代码,当我按下提交按钮时它也能正常工作,它出现在我的 php 服务器日志中

"POST /test/second.php HTTP/1.1" 200 699 ...

我可以在 php 中获取 POST 变量。

接下来,我将此 html 代码作为电子邮件 (gmail) 发送,如果我按下提交按钮,在我的桌面浏览器上的 gmail 上工作正常:)

但是如果我打开这封电子邮件,通过我的手机(iphone 的 gmail 应用程序,我也试过 android)我从 php 服务器日志中得到它

GET /test/ HTTP/1.1" 200 1546 ...

为什么我收到 GET 作为方法?或者我怎样才能从移动设备发出更好的请求???

之前必须由其他人处理此问题??

感谢您对此的任何回答。

最佳答案

我想您可能会发现不建议将表单嵌入到电子邮件中。大多数基于 Web 的电子邮件平台不支持表单功能。您最好提供指向表单的外部链接。

关于php - 为什么我得到 GET 方法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27467282/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com