OK I need a little help with a php email form, if you could help that would be awsome!
Ok so here is the website:
http://testsite.broadphase.com/ (it is just a free host that does support PHP that I am just testing on)
So, when you hit the submit a screenshot button it comes up with the form, ok? then when you fill in all the info and hit submit, it does not go to my email. I have my email address set and everything. It will just not go to my G-Mail account.
I guess I should show you the code, here is the sendmail.php:
Code:
<?php
$yourmail = "computewiz98@gmail.com"; // put your e-mail here
$t1 = $_POST['name'];
$t2 = $_POST['mail'];
$t3 = $_POST['comment'];
$data = "This is an automated mail. Someone submited the form and this is what he had to say:\nHis Name: $t1\nHis mail: $t2\nComment: $t3\n";
mail ($yourmail, "screenshot", $data); // The Form mean subject of mail you will receive
die ("Screenshot submited\n");
?>
and here is the form code:
Code:
<form name="form1" method="post" action="sendmail.php">
<table width="99%" border="0" align="center" cellpadding="1" cellspacing="0">
<tr>
<td width="44%"><div align="right">Your Name:</div></td>
<td width="56%"><input name="name" type="text" id="name"></td>
</tr>
<tr>
<td><div align="right">Your E-Mail:</div></td>
<td><input name="mail" type="text" id="mail"></td>
</tr>
</table>
<div align="center">
Comment:
<textarea name="comment" cols="50" rows="6" id="comment"></textarea>
<table width="99%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td>
<div align="right">
<input type="submit" value="Send Form">
</div></td>
<td><input type="reset" name="Submit2" value="Reset Form"></td>
</tr>
</table>
</div>
</form>
Ok once again, if you can help, awsome, if you can't, thats ok
Thanks,
wirercx:o