Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Submitting a Form

Status
Not open for further replies.

oahu9872

Programmer
Aug 12, 2005
9
US
I am having a wierd problem. I have an html form that will submit a blank form, but will not submit a form with data in it. I don't get errors or anything, the submit button just becomes disabled. I click on it and it does nothing if there is data, but goes ahead and submits when the form is totally blank. Any ideas?
 
Well, you should post your HTML so we can say for sure, but if I had to guess, there is some JavaScript validation taking place when you hit submit that is not written correctly. The validation only looks for wrong data entry, ignoring the "no-data" condition and it mistakenly thinks that ANY data entered is wrong.

Again, though, post code or else we'll be in for a long game of "Bring Me a Rock."

--Dave


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
O Time, Strength, Cash, and Patience! [infinity]
 
<input name="Action" value="Execute" type="hidden">

<td valign="top" bgcolor="#333333" class="maintextwhite" width="100">Heading : </td>
<td bgcolor="#DEDEDE" class="text12black">
<textarea name="Heading" cols="75" rows="3" class="maintext"></textarea></td>
</tr>
<tr>
<td valign="top" bgcolor="#333333" class="maintextwhite">Short Story : </td>
<td bgcolor="#DEDEDE" class="text12black">
<textarea name="ShortStory" cols="75" rows="5" class="maintext"></textarea>
</td>
</tr>
<tr>
<td valign="top" bgcolor="#333333" class="maintextwhite">Main Story : </td>
<td bgcolor="#DEDEDE" class="text12black">
<textarea name="MainStory" cols="75" rows="15" class="maintext"></textarea></td>
</tr>
<tr>
<td valign="top" bgcolor="#333333" class="maintextwhite">Archive :</td>
<td bgcolor="#DEDEDE" class="text12black">
<select name="Archive">
<option value="">Select</option>
<option value="0">Current</option>
<option value="1">Archive</option>
</select></td>
</tr>
<tr>
<td valign="top" bgcolor="#333333" class="maintextwhite">Feature :</td>
<td bgcolor="#DEDEDE" class="text12black">
<select name="Feature">
<option value="">Select</option>
<option value="0">No</option>
<option value="1">Yes</option>
</select></td>
</tr>
<tr>
<td valign="top" bgcolor="#333333" class="maintextwhite">Cover Story :</td>
<td bgcolor="#DEDEDE" class="text12black">
<select name="StopPress">
<option value="">Select</option>
<option value="0">No</option>
<option value="1">Yes</option>
</select></td>
</tr>
<tr>
<td bgcolor="#333333" class="maintextwhite">V & O :</td>
<td bgcolor="#DEDEDE" class="text12black">
<select name="VandO">
<option value="">Select</option>
<option value="0">No</option>
<option value="1">Yes</option>
</select></td>
</tr>
<tr>
<td valign="top" bgcolor="#333333" class="maintextwhite">V&amp;O Byline : </td>
<td bgcolor="#DEDEDE" class="text12black">
<input name="Byline" type="text" size="30" maxlength="50" ></td>
</tr>
<tr>
<td valign="top" bgcolor="#333333" class="maintextwhite">V&amp;O Picture : </td>
<td bgcolor="#DEDEDE" class="text12black">
<input name="AuthorPic" type="text" size="30" maxlength="50" ></td>
</tr>
<tr><td bgcolor="#333333" class="maintextwhite">&nbsp;</td>
<td bgcolor="#DEDEDE" class="maintext">&nbsp;</td></tr>
<tr>
<td bgcolor="#333333">&nbsp;</td>
<td bgcolor="#DEDEDE" class="text12black"><input name="submit" type="submit" value="submit">
</td>
</form>
 
this is just the form part of it ... not the asp or anything. i tested it in firefox browser and it works fine. only in IE the submit button won't work with a completed form
 
'need to see your opening <form> tag.

Dave


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
O Time, Strength, Cash, and Patience! [infinity]
 
By the way, try to put your <form></form> tags completely outside the <table></table> tags (if you absolutely have to use a table). That might be confusing IE.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
O Time, Strength, Cash, and Patience! [infinity]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top