Help - Search - Member List - Calendar
Full Version: URGENT HELP - form submit stops working when so many check boxes checked - Why?
WorkTheWeb Forums > Webmaster Resources > HTML Help
Support our Sponsors!
Dave Smithz
Hi there,

A PHP application I built has a section which lists a number of members to a
club whose names each appear with a check box beside them that can be
ticked.

These check boxes are part of a form which amongst other submit buttons has
a one particular submit button that if checked will send the form data
(using GET) to a script that will email all the checked members.

The client today phoned to say that when the check a few members on the form
(only about 10 actually) and pressed the submit button it done nothing (In
fact all submit buttons on form stop working). A can verify this behaviour
and also note that if I reduce the amount of checked members I can then make
the submit button work again!

This is bizarre. My initial thoughts are this may be something to do with it
being a GET post and there being a maximum length, but really I moved the
form to a GET method because I wanted the users to be able to use the back
button on the browser to come back to the page (I had trouble doing this
other ways).
Also I thought I would post this right away in case this is a recognised
scenario with an easy fix.

Please help and thanks in advance for any advice.

Dave

chotiwallah
Dave Smithz wrote:
QUOTE
Hi there,

A PHP application I built has a section which lists a number of members to a
club whose names each appear with a check box beside them that can be
ticked.

These check boxes are part of a form which amongst other submit buttons has
a one particular submit button that if checked will send the form data
(using GET) to a script that will email all the checked members.

The client today phoned to say that when the check a few members on the form
(only about 10 actually) and pressed the submit button it done nothing (In
fact all submit buttons on form stop working). A can verify this behaviour
and also note that if I reduce the amount of checked members I can then make
the submit button work again!

This is bizarre. My initial thoughts are this may be something to do with it
being a GET post and there being a maximum length, but really I moved the
form to a GET method because I wanted the users to be able to use the back
button on the browser to come back to the page (I had trouble doing this
other ways).
Also I thought I would post this right away in case this is a recognised
scenario with an easy fix.

Please help and thanks in advance for any advice.

Dave

doesn't look like a php problem, but anyway:

a couple of ideas come to mind:

1. check the html generated by your php script

2. try different browsers to check wether this is a browser problem

3. try using POST to check wether your form works at all

4. check/disable any javascript that might interfere with posting

this will hopefully bring you a bit closer to the error.

micha

Travis Newbury
Dave Smithz wrote:
QUOTE
A PHP application I built has a section which lists a number of members to a
club whose names each appear with a check box beside them that can be
ticked...

I created a webpage that solves your problem. But I, like you, will
not list the URL in the message...

--
-=tn=-

Dave Smithz
"Travis Newbury" <[Email Removed]> wrote in message
QUOTE
Dave Smithz wrote:
A PHP application I built has a section which lists a number of members
to a
club whose names each appear with a check box beside them that can be
ticked...

I created a webpage that solves your problem.  But I, like you, will
not list the URL in the message...

I'm not sure I understand. I cannot list the URL because it requires
password access and has confidential data protected by data protection act
etc.
If you had the same problem, what was causing it and how did you solve it?

Thanks

rf
Dave Smithz

QUOTE
I'm not sure I understand. I cannot list the URL because it requires
password access and has confidential data protected by data protection act
etc.

My car is broken. What is wrong?

QUOTE
If you had the same problem, what was causing it and how did you solve it?

I showed the car bloke at the garage my bloody car!

Cheers
Richard.

Travis Newbury
Dave Smithz wrote:
QUOTE
I created a webpage that solves your problem.  But I, like you, will
not list the URL in the message...
I'm not sure I understand. I cannot list the URL because it requires
password access and has confidential data protected by data protection act
etc.

No one can know if they have the same problem becuase when we make such
a page it works. We don't know what you did to make it not work.

Take your code and make a dummy page that displays the problem.
Chances are, when you make that dummy page the solution will be obvious
to you. If not, then we will at least be able to see what you did.

--
-=tn=-

Peter van Schie
Dave Smithz wrote:

QUOTE
A PHP application I built has a section which lists a number of members to a
club whose names each appear with a check box beside them that can be
ticked.

These check boxes are part of a form which amongst other submit buttons has
a one particular submit button that if checked will send the form data
(using GET) to a script that will email all the checked members.

Hi Dave,

If it only happens when quite some data is being sent through a GET
request (i.e. many checkboxes), it might be that the limit of size of
the GET request is being exceeded.
As chotiwallah already suggested; try it with POST to be sure.

--
http://www.phpforums.nl

Berislav Lopac
Dave Smithz wrote:
QUOTE
Hi there,

A PHP application I built has a section which lists a number of
members to a club whose names each appear with a check box beside
them that can be ticked.

These check boxes are part of a form which amongst other submit
buttons has a one particular submit button that if checked will send
the form data (using GET) to a script that will email all the checked
members.
The client today phoned to say that when the check a few members on
the form (only about 10 actually) and pressed the submit button it
done nothing (In fact all submit buttons on form stop working). A can
verify this behaviour and also note that if I reduce the amount of
checked members I can then make the submit button work again!

This is bizarre. My initial thoughts are this may be something to do
with it being a GET post and there being a maximum length, but really
I moved the form to a GET method because I wanted the users to be
able to use the back button on the browser to come back to the page
(I had trouble doing this other ways).

This is exactly what I thought. Have you even tried it with POST? Also, why
would there be a problem with POST?

Berislav

Dave Smithz
"Berislav Lopac" <[Email Removed]> wrote in message
news:db5rrj$lt6$[Email Removed]...
QUOTE
Dave Smithz wrote
OK been a busy day, but looks like (although not thoroughly tested it)

changing to POST solved it. However, when I was choosing the GET method, I
did query whether there would be a limit and it was not clear.

I am sure this sort of behaviour would have been well documented and well
known about.

In summary, if I create a webpage with many submit buttons with all slightly
different names (so I can work out which one has been pressed) and it also
has many check boxes, when I check over a certain number of these check
boxes all submit buttons stop working. I can then literally uncheck some
until I get to a point where the submit buttons will work again.

This seems to be a general case for me. I thought this would type of
limitation would be common knowledge to experts, or maybe I am still doing
something wrong.

I will carry on my investigations and report any interesting findings. the
problem with the post method is that my clients like to use the back button
and post does not work as well as get when it comes to actually seeing what
you had on the page before when you press the back button.

Kind regards

Dave


PHP Help | Linux Help | Web Hosting | Reseller Hosting | SSL Hosting
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2006 Invision Power Services, Inc.