PDA

View Full Version : Form problems...my code or cgi?


threesheets
04-16-2007, 01:59 PM
I have this form up on a friends site and there seems to be some problems, wonder if someone can help.
I sent a test of the form to see if the cgi script was working and my friend received the form with all the fields filled in (huraaay). However they have been getting many with just the name part filled completed when they sent themselves a tester the same thing happened (only the name field completed).
The code is pasted below, is it my form code or something I have to ask the hosting company regarding their cgi script?

Any help is much appreciated.

<form action="/cgi/gdform.cgi" method="post" enctype="text/plain" name="ContactNancy" target="_top" id="ContactNancy">
<table width="580" cellpadding="5">
<tr>
<td width="201">Name:</td>
<td width="433"><input name="Name" type="text" id="Name" size="40" /></td>
</tr>
<tr>
<td>Contact Information: </td>
<td>E-Mail:
<input name="E-Mail:" type="text" id="E-Mail:" size="30" /></td>
</tr>

<tr>
<td>&nbsp;</td>
<td><label>Day Phone:
<input name="Day Phone:" type="text" id="Day Phone:" size="12" />
Night Phone:
<input name="Night Phone:" type="text" id="Night Phone:" size="12" />
</label></td>
</tr>
<tr>
<td>Wedding Date: </td>
<td><label>Month:
<select name="Month:" id="Month:">
<option value="Jan">Jan</option>
<option value="Feb">Feb</option>
<option value="Mar">Mar</option>
<option value="Apr">Apr</option>
<option value="May">May</option>
<option value="Jun">Jun</option>
<option value="Jul">Jul</option>
<option value="Aug">Aug</option>
<option value="Sep">Sep</option>
<option value="Oct">Oct</option>
<option value="Nov">Nov</option>
<option value="Dec">Dec</option>
</select>
</label>
<Label>Day:<select name="Day:" id="Day:">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select></Label>
<label>Year:<select name="Year:" id="Year:">
<option value="2007">2007</option>
<option value="2008">2008</option>
<option value="2009">2009</option>
</select></label></td>
</tr>
<tr>
<td nowrap="nowrap">Number People Needing Services: </td>
<td><label>
<input name="Number of people" type="text" id="Number of people" size="4" />
</label></td>
</tr>
<tr>
<td nowrap="nowrap">Where is the Bride getting ready?</td>
<td><textarea name="where" id="where"></textarea></td>
</tr>
<tr>
<td nowrap="nowrap">How did you hear about us?</td>
<td><label>
<textarea name="How did you hear?" id="How did you hear?"></textarea>
</label></td>
</tr>
<tr>
<td colspan="2"><label>
<input type="submit" name="Submit" value="Submit Form" />
<input name="Reset" type="reset" id="Reset" value="Reset Form" />
</label></td>
</tr>
</table><input name="recipient" type="hidden" value="myfriend@theirsite.com" />
<input type="hidden" name="subject" value="Form Submission" />
<input type="hidden" name="redirect" value="thankyou.html" />
</form>

domedia
04-16-2007, 02:15 PM
I don't think you can have spaces and colons in your field names..

threesheets
04-16-2007, 04:35 PM
Thanks for the reply but there are no spaces in "where" "day" or "Year" and those fields are not complete either. Is there something I am missing, like it wont fill in any of the fields after one of them has failed?

davidj
04-16-2007, 06:31 PM
it has to be the poop chute's then

(colons)

all your fields have : except the name field !

chriskq
04-17-2007, 03:48 AM
what is THIS

<label>Month:
<select name="Month:" id="Month:">
<option value="Jan">Jan</option>
<option value="Feb">Feb</option>
<option value="Mar">Mar</option>
<option value="Apr">Apr</option>
<option value="May">May</option>
<option value="Jun">Jun</option>
<option value="Jul">Jul</option>
<option value="Aug">Aug</option>
<option value="Sep">Sep</option>
<option value="Oct">Oct</option>
<option value="Nov">Nov</option>
<option value="Dec">Dec</option>
</select>
</label>


ur wrapping up ur select list in the label
this is wrong

<label name="someName"></label>
<select name="someName">
list here
</select>