Parašė avice· 2011 Bir. 8 22:06:42
#13
net nemoki formos susikurt.....
<?php
if(isset($_POST['toemail'])){
$tema = "Tema pfff...";
$tekstas = $_POST['skype'].$_POST['vardas'].$_POST['tekstas'].$_POST['email'];
mail('sanex451@gmail.com', $tema, $tekstas);
echo "Zinute issiusta :]";
}
?>
<table>
<form method="post" action="">
<tr>
<td class="text">Vardas :</td>
<td><input name='vardas' type='text' /> </td>
</tr>
<tr>
<td class="text">El-paštas :</td>
<td><input name='email' type='text' /></td>
</tr>
<td class="text">Skype :</td>
<td><input name='skype' type='text' /></td>
<tr>
<td class="text">Žinutė :</td>
<td><textarea name='tekstas' rows="4" cols="30"></textarea></td>
</tr>
</table>
<p class="submit"><input name="toemail" value='Siusti' type="submit"/></p>
turetu veikt