What php code is needed in order to have this HTML form submit?

  • Thread starter Thread starter Connie
  • Start date Start date
C

Connie

Guest
Ideally we would like the form emailed and submitted to an excel file. My form code is below:
<form method="submit.php" action="post">
<table style="width: 100%; height: 202px">
<tr>
<td class="style14">First Name:</td>
<td class="style15">
<input name="First_Name" type="text" size="50" tabindex="1" /></td>
</tr>
<tr>
<td class="style14">Last Name:</td>
<td class="style15">
<input name="Last_Name" type="text" size="50" tabindex="2" /></td>
</tr>
<tr>
<td class="style14">Date of Birth:</td>
<td class="style15">
<input name="Date_of_Birth" type="text" size="20" tabindex="3" /></td>
</tr>
<tr>
<td class="style14">Number of Guests:</td>
<td class="style10">
<strong>
<span class="style2"><span class="style13">
<input name="Number_of_Guests" type="text" size="4" tabindex="4" /></span></span></strong></td>
</tr>
<tr>
<td class="style14">Email Address:</td>
<td class="style15">
<input name="Email" type="text" size="50" tabindex="5" /></td>
</tr>
<tr>
<td class="style14" valign="top">City:<br />
<br />
State, Zip:<br />
</td>
<td class="style10">
<span class="style2"><span class="style13">
<input name="City" type="text" size="50" tabindex="6" /></span></span><span class="style13"><br />
</span><span class="style2"><span class="style13">
<input name="State" type="text" size="2" tabindex="7" /></span></span><span class="style13">*
</span><span class="style2"><span class="style13">
<input name="Zip" type="text" size="10" tabindex="8" /></span></span></td>
</tr>
<tr>
<td class="style14" valign="top">I am visiting
from:<br />
<span class="style16">(please check one)</span></td>
<td class="style10">
<span class="style2"><span class="style13">
<input name="Craftster" type="checkbox" tabindex="9" value="Yes" /></span></span>
<span class="style13">Craftster<br />
</span><span class="style2"><span class="style13">
<input name="Standard" type="checkbox" value="Yes" tabindex="10" /></span></span><span class="style13">
Standard <br />
</span><span class="style2"><span class="style13">
<input name="Other" type="checkbox" value="Yes" tabindex="11" /></span></span><span class="style13">
Other</span></td>
</tr>
<tr>
<td class="style12" colspan="2">
<input name="Submit1" type="submit" value="submit" tabindex="12" /><input name="Reset1" type="reset" value="reset" tabindex="13" /></td>
</tr>
</table>
</form>
 
Back
Top