send mail

Discutii despre script-uri si coduri PHP-MySQL, precum si lucru cu XML in PHP.
Komfort
Mesaje:157

send mail

nu inteleg unde e greaseala:(?

Cod: Selectaţi tot

<?php 
 echo '<form method=post action=index.php?pagina=c >
<div style="position:absolute;top:75px;left:65px"><font color=#557B49 size=2 face=corbel>Name:</font><input type=text name=nume></div>
<div style="position:absolute;top:101px;left:65px"><font color=#557B49 size=2 face=corbel>E-mail:</font><input type=text name=email></div>
<div style="position:absolute;top:127px;left:65px"><font color=#557B49 size=2 face=corbel>Subject:</font><input type=text name=subject></div>
<div style="position:absolute;top:153px;left:65px"><font color=#557B49 size=2 face=corbel>Message:</font><input type=text name=message></div>
<div style="position:absolute;top:179px;left:65px"><input type=submit name=submit value=Send></div></form>
';

if(isset($_REQUEST['submit'])) {
$name = $_POST['nume'];
$email = $_POST['email'];
$message = $_POST['message'];
$content = 'De la: '.$name."\n"
          .'Mesaj: '.$message;
$to = 'dsc@yahoo.com';    
$subject = $_POST['subject'];
$from = 'From: '.$email;

if (isset($_POST['email'])) {
   mail($to, $subject, $content, $from); 
}
?>
eroarea care mi-oda:
Parse error: syntax error, unexpected $end in /home/u604232750/public_html/contact.php on line 40

claUdiu Mesaje:313
Ai uitat sa inchizi o acolada. Incearca sa pui la sfarsit: }
Se spune ca...."omul tot invata in viata". Dar...Totusi...Trebie sa ne oprim undeva, nu?