Autor Zpráva
vavroch
Profil *
Ahoj lidičky, můžete mi někdo pomoct. Udělal jsem si na webu jednoduchý formulář s odesilaním na email. Stále mi ale chodí prázdné maily. Můžete se prosím mrknout na ten obsah souboru "odeslat.php", jestli tam není nějaká chyba. Mail přijde se subjectem, pač subjekt je zadanej na tvrdo. To, co si má ale sosnout z formuláře, to nechodí. Prosím o radu. J

<?php

$jmeno = $_POST["form_jmeno"];
$email = $_POST["form_email"];
$vzkaz = $_POST["form_vzkaz"];

$to = "jiri.vavroch@seznam.cz";

$subject = "Jizerky_2006";
$message = "$vzkaz";

$headers = "content-type: text/plain; charset=windows-1250";

IF (@MAIL($to, $subject, $message, $headers))


{ECHO "<p>Vaše hodnocení bylo úspěšně odesláno.</p>";}
ELSE
{ECHO "<p>Chyba! Hodnocení nebylo odesláno.</p>";}
ECHO "Děkujeme za Váš čas.";

?>
Hugo
Profil
Mas dobre pojmenovane inputy ve formulari? Tzn., tak aby to odpovidalo indexum v poli $_POST?
vavroch
Profil *
příklad z kódu formuláře:
<input type="text" name="form_jmeno" size="30" maxlength="30">

příklad z php skriptu:
$jmeno = $_POST["form_jmeno"];

celý formulář bez přepínačů:
Jméno: <br>
<input type="text" name="form_jmeno" size="30" maxlength="30"> <br>
E-mail: <br>
<INPUT type="text" name="form_email" size="30" maxlength="30"> <p align="center">
Vaše náměty/připomínky:
<TEXTAREA name="form_vzkaz" rows="5" cols="23"></TEXTAREA> <p align="center">

<input type="submit" name="submit" value="Odeslat"><input type="reset" Value="Vymazat"><p>
Hugo
Profil
Hmm, tak to nevim, zkus si ty promenne vypsat ve skriptu, treba na neco prijdes.
vavroch
Profil *
Jak to myslíš - vypsat ve skriptu? Jsem v php zelenáč. J
Hugo
Profil
$jmeno = $_POST["form_jmeno"];
$email = $_POST["form_email"];
$vzkaz = $_POST["form_vzkaz"];

$to = "jiri.vavroch@seznam.cz";

$subject = "Jizerky_2006";
$message = "$vzkaz";

$headers = "content-type: text/plain; charset=windows-1250";


print $message;
print $to;

exit;


IF (@MAIL($to, $subject, $message, $headers))


{ECHO "<p>Vaše hodnocení bylo úspěšně odesláno.</p>";}
ELSE
{ECHO "<p>Chyba! Hodnocení nebylo odesláno.</p>";}
ECHO "Děkujeme za Váš čas.";

?>

Aspon uvidis, co skutecne te funkci predavas.
vavroch
Profil *
muzu ti prosim poslat celej kod stranky s formularem, jestli tam nenajdes nejakej zadrhel, please, potrebuju to hodnoceni co nejdriv rozchodit. J
Hugo
Profil
vavroch

Muzes, ale dostanu se k tomu tak v nedeli :-).
vavroch
Profil *
fakt se na to nemuzes mrknout ted, je to jednoduchej formularek pro 128 fotek, tj. 128krát to stejný + jméno, email, vzkaz
budu te vsude vychvalovat :-)

<HTML>
<HEAD>
<TITLE>Fotograf expedice Apalucha 2006</TITLE>
<META name="generator" content="Adobe Photoshop(R) CS Web Photo Gallery">
<META http-equiv="Content-Type" content="text/html; charset=windows-1250">
<link href="images/galleryStyle.css" rel="stylesheet" type="text/css">

</HEAD>


<body bgcolor="#cccccc" leftmargin="0" marginheight="0" marginwidth="0" topmargin="0">

<div id="thumbnail">

<table width="100%" border="0" cellpadding="0" cellspacing="0">


<!-- Thumbnails with hyperlinks -->

<form action="odeslat.php" method="POST" enctype="text/plain">

<tr><td align="center">

<div class="indexContent">

<table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="2"><a href="pages/F001.htm" target="TopFrame"><img src="thumbnails/F001.jpg" width="49" height="75" border=2 alt="F001"></a></td>

<td width="100%" valign="top"><div class="indexInfo"><div class="filename"><a href="pages/F001.htm" target="TopFrame">F001</a></div><div class="text">Téma č.1</div><div class="text">JEŠTĚD</div></div></td>

</tr>
</table>

<input type="radio" checked name="F001" value="0">0
<input type="radio" name="F001" value="1">1
<input type="radio" name="F001" value="2">2
<input type="radio" name="F001" value="3">3
<input type="radio" name="F001" value="4">4
<input type="radio" name="F001" value="5">5

<div></td></tr><!-- Thumbnails with hyperlinks -->

<tr><td align="center">

<div class="indexContent">

<table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="2"><a href="pages/F002.htm" target="TopFrame"><img src="thumbnails/F002.jpg" width="51" height="75" border=2 alt="F002"></a></td>

<td width="100%" valign="top"><div class="indexInfo"><div class="filename"><a href="pages/F002.htm" target="TopFrame">F002</a></div><div class="text">Téma č.1</div><div class="text">JEŠTĚD</div></div></td>

</tr>

</table>

<input type="radio" checked name="F002" value="0">0
<input type="radio" name="F002" value="1">1
<input type="radio" name="F002" value="2">2
<input type="radio" name="F002" value="3">3
<input type="radio" name="F002" value="4">4
<input type="radio" name="F002" value="5">5


<div></td></tr><!-- Thumbnails with hyperlinks -->

<tr><td align="center">

<div class="indexContent">

<table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="2"><a href="pages/F003.htm" target="TopFrame"><img src="thumbnails/F003.jpg" width="53" height="75" border=2 alt="F003"></a></td>

<td width="100%" valign="top"><div class="indexInfo"><div class="filename"><a href="pages/F003.htm" target="TopFrame">F003</a></div><div class="text">Téma č.1</div><div class="text">JEŠTĚD</div></div></td>

</tr>

</table>

<input type="radio" checked name="F003" value="0">0
<input type="radio" name="F003" value="1">1
<input type="radio" name="F003" value="2">2
<input type="radio" name="F003" value="3">3
<input type="radio" name="F003" value="4">4
<input type="radio" name="F003" value="5">5

<div></td></tr><!-- Thumbnails with hyperlinks -->

<tr><td align="center">

<div class="indexContent">

<table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="2"><a href="pages/F004.htm" target="TopFrame"><img src="thumbnails/F004.jpg" width="75" height="56" border=2 alt="F004"></a></td>

<td width="100%" valign="top"><div class="indexInfo"><div class="filename"><a href="pages/F004.htm" target="TopFrame">F004</a></div><div class="text">Téma č.1</div><div class="text">JEŠTĚD</div></div></td>

</tr>

</table>

<input type="radio" checked name="F004" value="0">0
<input type="radio" name="F004" value="0">-
<input type="radio" name="F004" value="0">-
<input type="radio" name="F004" value="3">-
<input type="radio" name="F004" value="4">-
<input type="radio" name="F004" value="5">-


<div></td></tr><!-- Thumbnails with hyperlinks -->

<tr><td align="center">

<div class="indexContent">

<table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="2"><a href="pages/F005.htm" target="TopFrame"><img src="thumbnails/F005.jpg" width="75" height="39" border=2 alt="F005"></a></td>

<td width="100%" valign="top"><div class="indexInfo"><div class="filename"><a href="pages/F005.htm" target="TopFrame">F005</a></div><div class="text">Téma č.1</div><div class="text">JEŠTĚD</div></div></td>

</tr>

</table>

<input type="radio" checked name="F005" value="0">0
<input type="radio" name="F005" value="1">1
<input type="radio" name="F005" value="2">2
<input type="radio" name="F005" value="3">3
<input type="radio" name="F005" value="4">4
<input type="radio" name="F005" value="5">5

<div></td></tr><!-- Thumbnails with hyperlinks -->

<tr><td align="center">

<div class="indexContent">

<table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="2"><a href="pages/F006.htm" target="TopFrame"><img src="thumbnails/F006.jpg" width="56" height="75" border=2 alt="F006"></a></td>

<td width="100%" valign="top"><div class="indexInfo"><div class="filename"><a href="pages/F006.htm" target="TopFrame">F006</a></div><div class="text">Téma č.1</div><div class="text">JEŠTĚD</div></div></td>

</tr>

</table>

<input type="radio" checked name="F006" value="0">0
<input type="radio" name="F006" value="1">1
<input type="radio" name="F006" value="2">2
<input type="radio" name="F006" value="3">3
<input type="radio" name="F006" value="4">4
<input type="radio" name="F006" value="5">5

<div></td></tr><!-- Thumbnails with hyperlinks -->

<tr><td align="center">

<div class="indexContent">

<table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="2"><a href="pages/F007.htm" target="TopFrame
vavroch
Profil *
nevejde se to sem celý, ale najdeš ho tady http://www.fotoapalucha.cz/soutez/ThumbnailFrame.htm
diky za kazdickou radu
Toto téma je uzamčeno. Odpověď nelze zaslat.

0