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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Submit won't submit

Status
Not open for further replies.

ivow

Programmer
Aug 6, 2002
55
CA
Hi there,

I have some code that creates a few groups of checkboxes and textboxes depending on the choices of the user and items from a database.
It basically outputs a grid of checkboxes with a text field beside them.

Certain combinations of checkboxes cause the submit button not to submit. I click on it and nothing happens. no submitting at all...

What would cause that? I don't get any jscript errors or ASP errors. And if I take the HTML output (View>Source) and save it as a file, the submit button does it's thing...

Does any one have any ideas on where I can start?

TIA

Ivo
 
you don't say whether you have any javascript that validates the form...if there is, i'll bet that somewhere in there is a 'return false' which halts the form submission. you may need to change the parameters of that validation in order to submit cleanly

hth Bastien

There are many ways to skin this cat,
but it still tastes like chicken
 
Sorry about that. I tried removing all the scripts from the page, but nothing.

I've investigated it further. I've narrowed it down to
some hidden fields I have in that form.
They are in a table, when I rename them to a,b,c and d it works. Or 1,2,3 and 4.

The names for the boxes are generated.

<INPUT type='hidden' id=IdQtyBox2Box4ord0 name=NmtxtQty2Box4ord0 value=6>
<INPUT type='hidden' id=IdQtyBox2Box5ord0 name=NmtxtQty2Box5ord0 value=18>
<INPUT type='hidden' id=IdQtyBox2Box7ord0 name=NmtxtQty2Box7ord0 value=8>
<INPUT type='hidden' id=IdQtyBox2Box9ord0 name=NmtxtQty2Box9ord0 value=16>

If I leave only the first one the file posts. Any other combinations gives me errors.

Is there a limitation to the number of characters in a name?

Here's the four rows that give me problems...

<tr><td><font face='Arial, Helvetica, sans-serif' size='2'
color='#000000'>S122</font></td><td><font face='Arial, Helvetica,
sans-serif' size='2' color='#000000'>6</font></td><td><font face='Arial,
Helvetica, sans-serif' size='2' color='#000000'>Excel 2002 (XP) Level
2</font></td><td><SELECT id=select1 name=selData2Box4ord0><font face='Arial,
Helvetica, sans-serif' size='2'
color='#000000'><OPTION>No</OPTION><OPTION>Yes</OPTION></select><INPUT
type='hidden' id=IdQtyBox2Box4ord0 name=NmtxtQty2Box4ord0
value=6></td></tr><tr><td><font face='Arial, Helvetica, sans-serif' size='2'
color='#000000'>W112P</font></td><td><font face='Arial, Helvetica,
sans-serif' size='2' color='#000000'>18</font></td><td><font face='Arial,
Helvetica, sans-serif' size='2' color='#000000'>Word 2000 Level
2</font></td><td><SELECT id=select1 name=selData2Box5ord0><font face='Arial,
Helvetica, sans-serif' size='2'
color='#000000'><OPTION>No</OPTION><OPTION>Yes</OPTION></select><INPUT
type='hidden' id=IdQtyBox2Box5ord0 name=NmtxtQty2Box5ord0
value=18></td></tr><tr><td><font face='Arial, Helvetica, sans-serif'
size='2' color='#000000'>I312</font></td><td><font face='Arial, Helvetica,
sans-serif' size='2' color='#000000'>8</font></td><td><font face='Arial,
Helvetica, sans-serif' size='2' color='#000000'>FrontPage 2000
Intermediate</font></td><td><SELECT id=select1 name=selData2Box7ord0><font
face='Arial, Helvetica, sans-serif' size='2'
color='#000000'><OPTION>No</OPTION><OPTION>Yes</OPTION></select><INPUT
type='hidden' id=IdQtyBox2Box7ord0 name=NmtxtQty2Box7ord0
value=8></td></tr><tr><td><font face='Arial, Helvetica, sans-serif' size='2'
color='#000000'>S112P</font></td><td><font face='Arial, Helvetica,
sans-serif' size='2' color='#000000'>16</font></td><td><font face='Arial,
Helvetica, sans-serif' size='2' color='#000000'>Excel 2000 Level
2</font></td><td><SELECT id=select1 name=selData2Box9ord0><font face='Arial,
Helvetica, sans-serif' size='2'
color='#000000'><OPTION>No</OPTION><OPTION>Yes</OPTION></select><INPUT
type='hidden' id=IdQtyBox2Box9ord0 name=NmtxtQty2Box9ord0
value=16></td></tr>
 
have u tried putting them in speech marks (&quot;)? Saturday 12.00
im6.gif
im2.gif
im2.gif
20.00
im5.gif
im4.gif
im7.gif
3.00am
im8.gif
Sunday [img http
 
i notice they all have the same name...use the [] at the end of the name to create an array then you can iterrate through the array to get all values

hth Bastien

There are many ways to skin this cat,
but it still tastes like chicken
 
actually, I don't repeat any of the names of the hidden input fields...
 
I figured it out last night.

My URL ( I was using GET) was running over 2083 characters (the limit) and
whenever that would happen it just wouldn't post. So I switched the method
to POST and now we're running smoothly.

Just for future reference, here's the URL for the site where found out the
limit....


Thanks for all your effort Bastien and Gary.

Have a good day.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top