I've got a problem with a php code it doesn't work ...It gives me an error :
Parse error: syntax error, unexpected T_STRING in /home/rasi4325/public_html/sending.php on line 8
the html code is this :
<form action="sending.php" method="post" name="Contact Form" id="form1" onsubmit="MM_validateForm('E-mail','','R')return document.MM_returnValue" encytype="text/plain">
<label>Va rugam introduceti adresa de e-mail pentru a primii ultimile noutati.</label>
<input type="text" name="Email" size="29" id="Email" title="Email" />
<input name="Submit" type="submit" id="Submit" value="Submit" />
</form>
the php code is this ":
<?php
$Name = $_REQUEST['Name'];
$Email = $_REQUEST['Email'];
$Phone = $_REQUEST['Phone'];
$Message = $_REQUEST['Message'];
/*Sending Email*/
$to = "support@test.ro";
$subject = "Cerere Stiri";
$message = "
Contact Client
Email = $Email
$from = "$Email";
if(mail($to, $subject, $message, "From: $from"))
echo "Mail sent";
else
echo "Mail send failure - message not sent";