chcel by som sa opytat na nasledujuci dotaz: mam vytvoreni subor
sendmajo.php s nasledujucim obsahom:
Kód:
<?php
$to = "mail@mail.sk";
$extra = "From: $email\r\nReply-To: $email\r\n";
$subject = "Vzkaz od ".$jmeno."";
$mess = "Jméno: ".$jmeno."\nEmail: ".$email."\n Web:
".$web."\nText:\n".$text."";
mail ($to, $subject, $mess, $extra);
?>
a formular s obsahom:
Kód:
<table height="300" width="100%" cellSpacing="0"
cellPadding="0" border="0">
<tr><td align="center" valign="top">
<form action="sendmajo.php" method="post">
<table width="200" border="0" class="text">
<tr><td width="50"><b>M</b>eno
:</td><td><input name="jmeno" accesskey="m"
type="text"></td></tr>
<tr><td width="50"><b>E</b>mail
:</td><td><input name="email" accesskey="e"
type="text"></td></tr>
<tr><td width="50"><b>W</b>eb
:</td><td><input name="web" accesskey="w"
type="text" value="http://"></td></tr>
<tr><td width="50"
valign="top"><b>T</b>ext :</td><td><textarea
name="text"
accesskey="t" rows="5"
cols="25"></textarea></td></tr>
<tr><td colspan="2" align="center"><input
type="submit" class="button"
value="Odoslať"> <input type="reset"
value="Vymazať"></td></tr>
</form></table>
</td></tr></table>
<center><a href="javascript: window.close();">Zavrieť
okno</a></center>
. Ked vylpnim formular a odoslem pride mail, ale prazdny, pride iba :
Meno:
Email:
Web:
Text:
ale bez obsahu. mohol by mi niekto poslat kompletny php kod na mail
lubo12@atlas.sk ??? som zaciatocnik.
vopred dik.
michal.h: upraven nadpis