Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.