面对$ _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;名称= QUOT; form1的&QUOT; ID = QUOT; form1的&QUOT;&GT; [/ 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(