![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
Join Date: Aug 2005
Posts: 137
Rep Power: 3
![]() |
How to force all form fields to be submitted
Hi,
I have a form with various fields composed of text boxes, radio buttons and check boxes. When the form is submitted, only the fields which have a value are actually put into the query string. Since I don't have all the fields, I can't check to see if they are valid. How can I force the form to send all fields whether even if they are empty? Thanks. |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Are you sure this is a Perl question? Have you researched the HTTP protocol? HTML? Checkboxes? Is your girl busy this coming weekend? Is she fed up?
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#3 |
|
Hobbyist Programmer
Join Date: Aug 2005
Posts: 137
Rep Power: 3
![]() |
I know user agents are not required to get the fields if they have no value. The question is, can I overcome this. In my Perl script, I can easily hard code the fields in and check if they were submitted but that doesn't seem very flexible. If that's my only option then I guess I don't have much of a choice.
|
|
|
|
|
|
#4 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
It's very difficult, from the viewpoint of the server, to force a browser, on a client, from whom you are mainly disconnected, to do precisely what you like. If you figure that out, I'll give you half the proceeds.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#5 |
|
Hobbyist Programmer
Join Date: Aug 2005
Posts: 137
Rep Power: 3
![]() |
Ok... thanks. I guess I'm gonna have to code the fields into the script to check the values.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|