Parašė frix· 2008 Rugp. 25 18:08:29
#3
<?php
if (isset($_REQUEST['pastas']) && isset($_REQUEST['tema']) && isset($_REQUEST['zinute']))
{
$pastas = $_REQUEST['pastas'] ;
$tema = $_REQUEST['tema'] ;
$zinute = $_REQUEST['zinute'] ;
mail("gavejas@email.lt", "Tema: $tema",
$zinute, "Nuo: $pastas" );
echo "Laiškas pristatytas sėkmningai.";
}
else
{
echo "<form method='post' action='".$_SERVER['PHP_SELF']."'>
El.pašto adresas:: <input name='pastas' type='text'/><br/>
Tema: <input name='tema' type='text'/><br/>
Žinutė:<br/>
<textarea name='zinute' rows='15' cols='40'>
</textarea><br/>
<input type='submit' valu='Siųsti'/>
</form>";
}
?>
:]