Jump to content

contact form


Recommended Posts

i created this contact form, but i need to include the actual php code. how could i go on about doing it?

 

i would like the user to select a name from the drop down menu and have it sent to the specified email.

 

<td width="484" height="466" valign="top"><form action="" method="post" name="form1" class="formq" id="form1">

Please use the contact form below to reach any of Liberty High Schools staff members. All fields should be filled in to the best of your knowledge.<br />

<br />

(<span class="req">*</span>)=Required Fields<br />

<br />

First name <span class="req">*</span> <br />

<input name="firstname" type="text" class="input" id="firstname" size="35" maxlength="20" />

<br />

<br />

Last Name<span class="req"> *</span><br />

<input name="lastname" type="text" class="input" id="lastname" size="35" maxlength="20" />

<br />

<br />

Email Address <span class="req">*</span><br />

<input name="emailaddress" type="text" class="input" id="emailaddress" size="35" maxlength="20" />

<br />

<br />

Please select a staff members name below<br />

<select name="staff" class="input" id="staff">

<option value="none"><Select></option>

<option value="WKA562@interact.ccsd.net">Wendy, Abney</option>

<option value="RAA540@interact.ccsd.net">Roxanne, Albertson</option>

<option value="XSA565@interact.ccsd.net">Xavier, Antheaume</option>

<option value="eaaslin@interact.ccsd.net">Elicia, Aslin</option>

<option value="HCA565@interact.ccsd.net">Harmony, Ayala</option>

<option value="WMB565@interact.ccsd.net">Wanda, Babcock</option>

<option value="NLBakko@interact.ccsd.net">Nicki, Bakko-Toliver</option>

</select>

<span class="req"> *</span><br />

<br />

Comments <span class="req">*</span><br />

<textarea name="comments" cols="35" rows="4" class="input" id="comments"></textarea>

<br />

<br />

<input name="submit" type="image" id="submit" value="Submit" src="images/submit2.png" />

 

<input name="reset" type="image" id="reset" value="Submit" src="images/reset2.PNG" />

<br />

</form></td>

Link to comment
https://forums.phpfreaks.com/topic/2815-contact-form/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.