<form method=post action=index1.php>
<input type=hidden name=active value=1>
<table width="376" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top"> </td>
<td align="left" valign="top"><img src="../../images/spacer.gif" width="1" height="25" /></td>
<td align="left" valign="top"><?php
$a=0;
while(list($key, $val) = each($_POST)) {
#print "<br>$val -".strlen($val);
if (strlen($val)>1) {
$a++;
}
}
if ($a <5) {
if (!$active==0) {
print "<b><font color=#ff6600>You probably forgot something.</font></b><br>";
}
?></td>
<td align="left" valign="top"> </td>
</tr>
<tr>
<td align="left" valign="top"> </td>
<td align="left" valign="top" bgcolor="#999999"> </td>
<td align="left" valign="top" bgcolor="#999999"> </td>
<td align="left" valign="top"> </td>
</tr>
<tr>
<td width="8" align="left" valign="top"> </td>
<td width="8" align="left" valign="top" bgcolor="#999999"> </td>
<td align="left" valign="top" bgcolor="#999999">Name<br />
<input name=name type=text id="name" value=<?print "\"$name\""?> size=26 maxlength=50></td>
<td width="8" align="left" valign="top"> </td>
</tr>
<tr>
<td width="8" align="left" valign="top"> </td>
<td width="8" align="left" valign="top" bgcolor="#999999"> </td>
<td align="left" valign="top" bgcolor="#999999">E-mail<br />
<input name=email type=text id="email" value=<?print "\"$email\""?> size=26 maxlength=50></td>
<td width="8" align="left" valign="top"> </td>
</tr>
<tr>
<td width="8" align="left" valign="top"> </td>
<td width="8" align="left" valign="top" bgcolor="#999999"> </td>
<td align="left" valign="top" bgcolor="#999999">Subject<br />
<select name="subject">
<option value="[Support] Something else" selected="selected">Please select a subject
<option value="[Support] Custom type(face)">Custom type(face)
<option value="[Support] Technical support">Technical support
<option value="[Support] Licensing">Licensing
<option value="[Support] Ordering help">Ordering help
<option value="[Support] Website comments">Website comments
<option value="[Support] Something else">Something else
</select></td>
<td width="8" align="left" valign="top"> </td>
</tr>
<tr>
<td width="8" align="left" valign="top"> </td>
<td width="8" align="left" valign="top" bgcolor="#999999"> </td>
<td align="left" valign="top" bgcolor="#999999">Message<br />
<textarea name="message" cols="45" rows="12" class="textfield" id="message"></textarea></td>
<td width="8" align="left" valign="top"> </td>
</tr>
<tr>
<td width="8" align="left" valign="top"> </td>
<td width="8" align="left" valign="top" bgcolor="#999999"> </td>
<td align="left" valign="top" bgcolor="#999999">All fields are required.
<br />
<input name="submit" type="submit" value="Submit" />
<?php
} else {
print "<br><b><font color=#ff6600>Thank you! We will come back to you soon.</font></b>";
$body = "Contact form\n\nName: $name\nSubject: $subject\nEmail: $email\nMessage: $message\n";
mail("[email protected]",$subject,$body,"From: $email\r\n");
if ($mailing==1) {
mail("[email protected]",$subject,"","From: $email\r\n");
}
}
?>
<br />
<br /></td>
<td width="8" align="left" valign="top"> </td>
</tr>
</table>
<img src="../../images/various/divider.gif" width="360" height="8" />
</form>
이 양식은 다른 서버에서 실행 중입니다. 하지만 지금은 움직이지 않았습니다. 양식은 이메일을 보내지 만 채워지지 않습니다. 그것은 PHP로 서버에서 실행중인 5.2.12변경된 서버, 이제는 내 양식이 더 이상 작동하지 않습니다.
는'$ HTTP_POST_VARS'가되지 않습니다이되지 않습니다이다. 대신'$ _POST'를 시도하십시오. –
'당신이 살고있는 나라는 $ 4.100.0 $ _POST 도입 된 $ HTTP_POST_VARS.'입니까? – ajreal
나는 네덜란드 출신이다. – Maikel