面对$ _POST的问题。 PHP无法处理数据... [英] Facing problems with $_POST. Data can not be processed by PHP...

查看:74
本文介绍了面对$ _POST的问题。 PHP无法处理数据...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是PHP的新手。下面是我的简单PHP文件invite.php。带有图像发送按钮的表单(我必须使用图像发送按钮,因为这是要求,可能是这导致问题!):

I am new to the world of PHP. Below is my simple PHP file "invite.php" with a form having an image send button (I have to use the image send button because it is the requirement, may be this is causing problem!):

展开 | 选择 | Wrap | 行号

推荐答案

您能否为我们简化代码并解释更多问题。
Can you simplify your code for us and also explain what is the problem more.


为您的表单提供一个name / id:

[HTML]< form action =" submit.php"方法= QUOT; POST"名称= QUOT; form1的" ID = QUOT; form1的"> [/ HTML]

尝试而不是传递this.form,传递任何东西并在函数中执行:
give your form a name/id:
[HTML]<form action="submit.php" method="POST" name="form1" id="form1"> [/HTML]
try instead of passing this.form, pass nothing and in the function do:
展开 | 选择 | 换行 | 行号


大家好,


我在这段代码中对php进行了几次调整如下:


[PHP]

<?php

if(isset(
Hi all,

I have done a couple of tweeks to the php in this code follows:

[PHP]
<?php
if (isset(


这篇关于面对$ _POST的问题。 PHP无法处理数据...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆