vietboy505
Technical User
I need help on the e-mail form, can any one help me?
I want the form to check if everything is inputs correct such as an valid e-mail.
If the user choose General, it will send to general email. general@email.com. If the user choose Customer, it will send to Customer e-mail. customer@email.com. Is this have something to do with switch case?
From: Name [General or Customer]
The subject is either : General/Customer question from Name [date()]
The body is Comments, plus a timestamp.
Thanks alot.
I want the form to check if everything is inputs correct such as an valid e-mail.
If the user choose General, it will send to general email. general@email.com. If the user choose Customer, it will send to Customer e-mail. customer@email.com. Is this have something to do with switch case?
From: Name [General or Customer]
The subject is either : General/Customer question from Name [date()]
The body is Comments, plus a timestamp.
Code:
<form name="email_form" action="<?php echo $PHP_SELF; ?>" method="post">
<input type="hidden" name="require" value="Name,Email,Purpose,Comments">
<table>
<tr>
<td align="right">Name:</td>
<td><input name="Name" size="25"></td>
</tr>
<tr>
<td align="right">E-mail:</td>
<td><input name="Email" size="25"></td>
</tr>
<tr>
<td align="right">Purpose:</td>
<td><select name="Purpose">
<option value="General">General
<option value="Customer">Customer
</select>
</td>
</tr>
<tr>
<td align="right">Comments:</td>
<td><textarea name="Comments" rows="10" cols="40"></textarea>
</td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" value="Submit" name="email_form">
<input type="reset" value="Reset" name="reset"></td>
</tr>
</table>
</form>
Thanks alot.