Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

RE: RE: RE: Re: How to check value of checkbox on form submit?

by BBQ (Curate)
on May 10, 2000 at 19:21 UTC ( [id://10967]=note: print w/replies, xml ) Need Help??


in reply to RE: RE: Re: How to check value of checkbox on form submit?
in thread How to check value of checkbox on form submit?

You're right! I thought that sounded a little odd so I ran the following test:
<html><body> <form action="http://johnny.warp.psi.br/cgi-bin/test.pl"> <input type="text" name="field1"> <input type="checkbox" name="field2" value="on"> <input type="submit"> </form> </body> </html>
If this form is submitted with everything blank, curiously the text input gets carried as null, but the checkbox is undef! QUERY_STRING : field1=

I don't see where the consistency is here, but that was something I had never really noticed.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://10967]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2024-04-23 14:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found