<form method="post" action="contact_us.php"><font color="#FFFFFF"><?
$name=$_POST['name'];
$email=$_POST['email'];
$subject=$_POST['subject'];
$txt=$_POST['txt']?>
<?
if (!$name){echo ("Please Insert Your Full Name") ;
}
elseif (!preg_match("/^.+?@.+?\..+?/i" , $email)){echo ("Please Enter A Correct Email");
}
elseif (!$subject){echo (" Please Type a Subject");
}
elseif(!$txt){echo("Please Write Your E-mail Text");
} ?> </font>
<td width="144"><span class="style19"><u>Your Name:</u></span></td>
<td width="278"><input type="text" name="name" /></td>
</tr>
<tr>
<td><span class="style19"><u>Your E-mail:</u></span></td>
<td><input type="text" name="email" /></td>
</tr>
<tr> </tr>
<tr>
<td><span class="style19"><u>Subject:</u></span></td>
<td><input type="text" name="subject" /></td>
</tr>
<tr>
<td height="111"><span class="style19"><u>Your Message:</u></span></td>
<td><textarea style="width:17.5em; height:7em" name="txt"></textarea> </td>
</tr>
</table>
<br />
<div align="center"><input type="submit" value="Send Message" /></div></form>
<? $to="info@rz-group.com";
$headers .= 'From: $email' . "\r\n";
$headers .= 'Name: $name' . "\r\n";?><?
if(mail($to,$subject,$txt,$headers)){ echo ("
<div align='center'>Your message has successfully been sent, We'll try to get back to you as soon as possible. <br />");}
else { echo("<div align=\'center\'>Your message couldn\'t be sent. Please try again at a later time. Thanks. </div><br />");}
?>
Sorry inserting them into php and html tags wasnt working!:S hope u would helpo me!:D
__________________
Anthony.Riachy
|