This is my forum
<p><form method="POST" action="send.php"> Contact form <table width="100%" border="0"> <tr> <td width="15%">Name: </td> <td width="79%" colspan="2"><input name="name" type="text"></td> </tr> <tr> <td>Email: </td> <td colspan="2"><input name="email" type="text"></td> </tr> <tr> <td>Subject:</font></td> <td colspan="4"><select name="subject" id="subject"> <option>Report an Error</option> <option>gfhgfh</option> <option>Other</option> </select> </tr> <tr> <td>Message: </td> <td colspan="2"><textarea name="message" cols="50" rows="5">Enter your comments here...</textarea></td> </tr> <tr> <td colspan="3"><div align="center"> <input type="submit" name="Submit" value="Submit"> <input type="reset" name="Submit2" value="Reset"> </div></td> </tr> </table> </form>
This is My Code
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$subject = $_POST['subject'];
$recipients = "zadine@gameanimehybrid.com";
$headers["From"] = $email;
$headers["To"] = "zadine@gameanimehybrid.com";
$headers["Subject"] = $subject;
$body = $message;
$sendit = $mail_object->send($recipients, $headers, $body);
if (!$sendit)
{
echo("Your email has failed plz try again");
} else{
echo("Thankyou we for your Email");
}
?>
