icomedsupply
New Member
- Messages
- 7
- Reaction score
- 0
- Points
- 0
Well I've been looking and I've been getting some conflicting/confusing answers. So simply put, how do i set up my html form code so that when the user clicks submit it sends their input/data to my email address?
Here is the code:
help would be greatly appreciated. I joined this webhosting service because at my old webhost you had to pay for php and sendmail to be activated but I heard that here it's included free.
Here is the code:
Code:
<form action="process.php" method="POST">
<fieldset> <label
for="fname">First name:</label>
<input value="" size="20"
id="fname" type="text"><br>
<label for="lname">Last
Name:</label> <input
value="" size="20" id="lname" type="text"><br>
<label for="faddress">Address:</label>
<input value="" size="20"
id="faddress" type="text"><br>
<label for="laddress">Address2:</label>
<input value="" size="20"
id="laddress" type="text"><br>
<label for="city">City:</label>
<input value="" size="20"
id="city" type="text"><br>
<label for="state">State:</label>
<input value="" size="20"
id="state" type="text"><br>
<label for="country">Country:</label>
<input value="" size="20"
id="country" type="text"><br>
<label for="zip">Zip/Postal
Code:</label> <input
value="" size="20" id="zip" type="text"><br>
<label for="phone">Phone:</label>
<input value="" size="20"
id="phone" type="text"><br>
<label for="fax">Fax:</label>
<input value="" size="20"
id="fax" type="text"><br>
<label for="mobile">Mobile:</label>
<input value="" size="20"
id="mobile" type="text"><br>
<label for="email">Email
Address:</label> <input
value="" size="20" id="email" type="text"><br>
<label for="best time">Best
Time to Contact:</label>
<select name="best time">
<option value="morning">Morning</option>
<option value="afternoon">Afternoon</option>
<option value="evening"
selected="selected">Evening</option>
</select>
<br>
<br>
<label for="preferred">Preferred
Method of Contact:</label>
<select name="preferred">
<option value="phone">Phone</option>
<option value="fax">Fax</option>
<option value="email"
selected="selected">Email</option>
</select>
<br>
<br>
<label for="comments">Comments,Questions,Special
Interests:</label>
<textarea rows="5" cols="25"></textarea>
<input value="Submit"
class="submit-btn" name="Submit" type="submit">
</fieldset>
</form>