after having watched the 2 blue voda tutorials on forms
and tried to follow the php mailto security tutorial instructions, I still cannot understand how to make required fields and set error messages.
can anybody help? I'm Italian and my English is limited!!! thanks so much!
this is my form:
</FORM>
</DIV>
<INPUT type="text" style="position:absolute;left:16px;top:369px;width :162px;font-family:Arial;z-index:7" size="27" name="nòmene e sambinàdu" value="nòmene e sambinàdu">
<INPUT type="text" style="position:absolute;left:16px;top:410px;width :174px;font-family:Arial;z-index:8" size="29" name="inderitziu de domo" value="inderitziu de domo">
<INPUT type="submit" name="invia" value="Ordina" style="position:absolute;left:15px;top:496px;z-index:9">
<TEXTAREA name="cumèntos" style="position:absolute;left:16px;top:451px;width :268px;height:28px;font-family:Arial;z-index:10" rows=0 cols=40>cumèntos</TEXTAREA>
</FORM>
and this is my php file:
<HTML>
<HEAD>
<TITLE>Ordine Inviato</TITLE>
</HEAD>
<BODY>
<H2><FONT style="FONT-SIZE:10pt" color="#000000" face="Arial">Gratzias! S'ordine tou est bistàdu imbiàdu in manera curretta,<p>as a retzìre a presse sa cunfirma.</FONT></H2>
<?PHP
$email = $HTTP_POST_VARS[email];
$mailto = "?????@tiscali.it";
$mailsubj = "Ordine dal sito Osinka Editziones";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
$mailbody .= "$key : $val\n";
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
</BODY>
</HTML>
and tried to follow the php mailto security tutorial instructions, I still cannot understand how to make required fields and set error messages.
can anybody help? I'm Italian and my English is limited!!! thanks so much!
this is my form:
</FORM>
</DIV>
<INPUT type="text" style="position:absolute;left:16px;top:369px;width :162px;font-family:Arial;z-index:7" size="27" name="nòmene e sambinàdu" value="nòmene e sambinàdu">
<INPUT type="text" style="position:absolute;left:16px;top:410px;width :174px;font-family:Arial;z-index:8" size="29" name="inderitziu de domo" value="inderitziu de domo">
<INPUT type="submit" name="invia" value="Ordina" style="position:absolute;left:15px;top:496px;z-index:9">
<TEXTAREA name="cumèntos" style="position:absolute;left:16px;top:451px;width :268px;height:28px;font-family:Arial;z-index:10" rows=0 cols=40>cumèntos</TEXTAREA>
</FORM>
and this is my php file:
<HTML>
<HEAD>
<TITLE>Ordine Inviato</TITLE>
</HEAD>
<BODY>
<H2><FONT style="FONT-SIZE:10pt" color="#000000" face="Arial">Gratzias! S'ordine tou est bistàdu imbiàdu in manera curretta,<p>as a retzìre a presse sa cunfirma.</FONT></H2>
<?PHP
$email = $HTTP_POST_VARS[email];
$mailto = "?????@tiscali.it";
$mailsubj = "Ordine dal sito Osinka Editziones";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
$mailbody .= "$key : $val\n";
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
</BODY>
</HTML>
Comment