|
Php email form troubles
hi,
I recently decided to make my own website for my business instead of paying somone. Iv finished it all but am stuck on an email form. Iv done the html part on my page and it looks good, i just need a php to send to my email then redirect to a thank you page and if fields are blank redirect to an error page . Here is the HTML if anyone could help me marry a PHP to it would be greatly appreciated.
<form action="form.php" method="post">
<table>
<tr>
<td>Name:</td><TD>
<input type="text" name="email_address" value="" maxlength="100" />
</tr>
</td>
<tr>
<td>Phone number:</td><td>
<input type="text" name="email_address" value="" maxlength="100" />
</td>
</tr>
<tr>
<td>Address:</td><br>
<td>
<textarea rows="5" cols="20" name="comments"></textarea>
</td>
</tr>
<tr>
<td>Description:</td><br>
<td>
<textarea rows="6" cols="50" name="comments"></textarea>
</td>
</tr>
<tr><td> </td>
<td>
<input type="submit" value="Submit" />
</td>
</tr>
</table>
</form>
<p></p>
</p>
|