Autor Zpráva
tb
Profil *
Za boha nemuzu zprovoznit mailovy formular pres php skript, kdyby nekdo videl
chybu sem s ni....

HTML:
<form action="send.php" method="post">

<p class= "text_quotes">Name:</p>
<div class="input text_form"><label for="UserIcq"></label><input
name="name" type="text_form" size="82" maxlength="20" value=""
id="Name" /></div>

<p class= "text_quotes">E-mail adress:</p>
<div class="input text_form"><label for="UserIcq"></label><input
name="email" type="text_form" size="82" maxlength="40" value=""
id="Email" /></div>

<p class= "text_quotes">Message:</p>
<div class="input text_form"><label for="UserIcq"></label><textarea
name="text" rows="6" cols="62"id="Message"></textarea> </div>

<div class="input text_form"><input type="submit" class="submit2"
value="SUBMIT"> </div>
</form>

SEND.PHP:

<?php

$to = "mailadresa";
$extra = "From: $email\r\nReply-To: $email\r\n";
$subject = "predmet";
$mess = "\n".$text."";


if ($name!="" and $email!="" and $text!="" )
{
mail ($to, $subject, $mess, $extra);
echo "<p><strong>Your email has been sent to my adress. I will answer you
asap.</strong>.</p>";
}
else
{
echo "<p>Your email has not been sent, you probably not filled all fields
correct</p>";
}

?>

<html><head>
<META HTTP-EQUIV="Refresh" CONTENT="4; URL=contact.html">
</head></html> 


diky
Keeehi
Profil
Proměnné $name, $text, $email zkus nahradit za $_POST["name"], $_POST["text"], $_POST["email"].

Vaše odpověď


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm:

0