Javascript 表格Post doens';我不能在Iphone上工作

Javascript 表格Post doens';我不能在Iphone上工作,javascript,php,html,iphone,Javascript,Php,Html,Iphone,您好,我有一个问题的形式与方法后。当我尝试在计算机上执行此表单时,它在Android中运行良好,但在Iphone中,我在nginx error.log上得到一个错误,表示该方法不是POST。表格如下: <form name="info_form" id="info_form" action="add_voucher.php" method="post"> <input type="hidden" name="mac" value="<?php echo $data[

您好,我有一个问题的形式与方法后。当我尝试在计算机上执行此表单时,它在Android中运行良好,但在Iphone中,我在nginx error.log上得到一个错误,表示该方法不是POST。表格如下:

<form name="info_form" id="info_form" action="add_voucher.php" method="post">   
<input type="hidden" name="mac" value="<?php echo $data['mac']; ?>">
<input type="hidden" name="ip" value="<?php echo $data['ip']; ?>">
<input type="hidden" name="link-login" value="<?php echo $data['linklogin']; ?>">
<input type="hidden" name="link-orig" value="<?php echo $data['linkorig']; ?>">
<input type="hidden" name="chap-id" value="<?php echo $data['chapid']; ?>">
<input type="hidden" name="chap-challenge" value="<?php echo $data['chapchallenge']; ?>">
<input type="hidden" name="link-login-only" value="<?php echo $data['linkloginonly']; ?>">
<input type="hidden" name="link-orig-esc" value="<?php echo $data['linkorigesc']; ?>">
<input type="hidden" name="mac-esc" value="<?php echo $data['macesc']; ?>">
<input type="hidden" name="dst" value="<?php echo $data['dst']; ?>" />
<input type="hidden" name="error" value="">
<input type="hidden" name="username" value="<?php echo $data['username']; ?>">
<input type="hidden" name="popup" value="true" />
<input type="hidden" name="password" value="<?php echo $data['password']; ?>"/> 
<input type="hidden" name="enable-email-auth" value="<?php echo $data['enable_email_auth']; ?>" />  
<input type="hidden" name="link-redirect" value="<?php echo $data['linkredirect']; ?>" />
<input type="hidden" name="facebook-login" id="facebook-login" value="0">
<input type="hidden" name="facebook-email" id="facebook-email" value="<?php echo $me['email']; ?>">
<input type="hidden" name="icon-file-name" value="<?php echo $data['icon_file_name'];?>">
<input type="hidden" name="background-file-name" value="<?php echo $data['background_file_name'];?>">
<input type="hidden" name="facebook-id" id="facebook-id" value="<?php echo $me['id'];?>">
<input type="hidden" name="google-id" id="google-id" value="">
<input type="hidden" name="google-email" id="google-email" value="">
<input type="hidden" name="realm-name" value="<?php echo $data['realmname'];?>">
<input type="hidden" name="realm-id" value="<?php echo $data['realmid'];?>">
<input type="hidden" name="user-id" value="<?php echo $data['userid'];?>">
<input type="hidden" name="profile-mac" value="<?php echo $data['profile-mac'];?>">
<input type="hidden" name="profile-social" value="<?php echo $data['profile-social'];?>">
<input type="hidden" name="days-valid-mac" value="<?php echo $data['days-valid-mac'];?>">
<input type="hidden" name="hours-valid-mac" value="<?php echo $data['hours-valid-mac'];?>">
<input type="hidden" name="minutes-valid-mac" value="<?php echo $data['minutes-valid-mac'];?>">
<input type="hidden" name="days-valid-social" value="<?php echo $data['days-valid-social'];?>">
<input type="hidden" name="hours-valid-social" value="<?php echo $data['hours-valid-social'];?>">
<input type="hidden" name="minutes-valid-social" value="<?php echo $data['minutes-valid-social'];?>">
<input type="hidden" name="page-lang" value="pt">
<input type="hidden" name="enable_premium_login" value="<?php echo $data['enable_premium_login'];?>">
<input type="hidden" name="gender" value="<?php echo $me['gender']; ?>">
<input type="hidden" name="age" value="<?php echo $age; ?>">
document.info_form.submit();
在error.log文件中,我得到的是:

[错误]1901#0:*1425 FastCGI在标准中发送:“PHP消息:******* Nao e um POST,在读取响应标题时添加_-concedure.php******!“ 从上游,客户端:10.20.30.7,服务器:\请求:“获取 /登录/add_voucher.php HTTP/1.1“,上游: "fastcgi://unix:/var/run/php-fpm/php fpm.sock:“


您的表单未关闭。另外,您不应该像那样使用文档对象<代码>文档.getElementById(“信息表单”).submit()是您应该使用的。当我复制表单时,我忘记复制表单的结尾。我尝试了document.getElementById(“info_form”).submit();但是在Iphone中也会发生同样的错误,总是使用get而不是post发送表单。您的表单未关闭。另外,您不应该像那样使用文档对象<代码>文档.getElementById(“信息表单”).submit()是您应该使用的。当我复制表单时,我忘记复制表单的结尾。我尝试了document.getElementById(“info_form”).submit();但同样的错误也发生在Iphone中,它总是使用get而不是post发送表单。