473,787 Members | 2,857 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

URGENT HELP - form submit stops working when so many check boxes checked - Why?

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
Jul 17 '05 #1
17 2768


Dave Smithz wrote:
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

Jul 17 '05 #2
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...

--
-=tn=-

Jul 17 '05 #3

"Travis Newbury" <Tr***********@ hotmail.com> wrote in message
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
Jul 17 '05 #4
rf
Dave Smithz
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?
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.
Jul 17 '05 #5
Dave Smithz wrote:
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=-

Jul 17 '05 #6
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.

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
Jul 17 '05 #7
Dave Smithz wrote:
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
Jul 17 '05 #8

"Berislav Lopac" <be************ @lopsica.com> wrote in message
news:db******** **@garrison.glo balnet.hr...
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

Jul 17 '05 #9
Dave Smithz wrote:
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.


As Peter said, it is common knowledge. The thing is that, IIRC, Web server
(e.g. Apache or IIS) can set this limit in a configuration, so there is no
telling what is the limit in any single case.

Berislav
Jul 17 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2436
by: Edward | last post by:
The following html / javascript code produces a simple form with check boxes. There is also a checkbox that 'checks all' form checkboxes hotmail style: <html> <head> <title></title> </head> <body> <form name="myform" action=test.php method=post>
5
1810
by: VbUser25 | last post by:
hi i need urgent responses.. i have some 15 checkboxex on a form... i want to 1st check the no. of checkboxes that are checked?? and then loop it that many times adn insert the quantities the user enters in the text boxes. do i need to group the checkboxes....hwo can i do that??? how to know which checkbox is checked because out of the 15 checkbox say 1,5,7, 9th are checked then i 1st need to get the id from the database adn then
1
6163
by: sman | last post by:
Hi, I recently read this article on About.com on how to create required fields for a form: http://javascript.about.com/library/scripts/blformvalidate.htm Everything works great except that there are no instructions on how to make checkboxes and radio buttons required. I've tried adding these to my form, but I'm having no luck. Anyone know how to add radio buttons and checkboxes using the existing code mentioned on the url? Thank you!
2
5522
by: Ceema M via DotNetMonster.com | last post by:
Hello all, I have a nested repeater, which displays categories(parent repeater) and corresponding subcategories(child repeater). Both repeaters have checkboxes. When I check category checkbox and subcategory check boxes and click on submit button , I have to retrieve the corresponding categoryid and subcategory id, so that I can store it to a table. I am getting the categoryid but I am failing to get subcategoryid(actually I don't know...
2
1949
by: Cerebral Believer | last post by:
Hi folks, Can anyone help me with this form: http://futurebydesign-music.com/_member/club_fbd_reg.php I have followed to coding instructions aas closely as I can, but I am getting errors about not filling in all the fields on the form correctly when I test it. Is validating a form with radio buttons difficult?
11
3002
by: Rik | last post by:
Hello guys, now that I'm that I'm working on my first major 'open' forms (with uncontrolled users I mean, not a secure backend-interface), I'd like to add a lot of possibilities to check wether certain fields match certain criteria, and inform the user in different ways when the data is wrong (offcourse, this will be checked on posting the data again, but that's something I've got a lot of experience with). Now, offcourse it's...
12
2242
by: liamo | last post by:
Don't laugh lol I know your all php guru's : ) Ok, so I have little if any knowledge with the programming language php - only having created small enquiry forms. Now I have a client that needs a job order form with a little more function than having solely contact details and a big enquiry text area. The form I created in HTML is located at http://www.ebesign.co.nz/projects/justfixit/job_order_form.html and has used javascript to...
6
6899
by: Harshpandya | last post by:
Hi all, I am working on the form in which you fill out the whole PHP form and e mail that details to someone. It is working fine. But now i want to send the same form to be sent to different people and user should be able choose the check boxes to whom they want to send e mail to. I write some code simple If else conditions but i think i am making some mistakes. Because when i tried - it is not sending them e mails. Here is my code. I...
5
2549
by: plumba | last post by:
Hi all I have a form (see below), which for some reason has decided to stop functioning all together. It just does not call up the function. It is called up in the opening <form> tag but fails.... Any ideas??? <html> <head><title>New Details</title> </head> <center> <H2><IMG SRC="$(path)smlogo.gif"><br>
0
9655
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9497
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10363
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9964
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7517
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6749
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.