Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Help understanding this script

by sedhed (Scribe)
on Jul 18, 2002 at 16:31 UTC ( [id://182896]=note: print w/replies, xml ) Need Help??


in reply to Help understanding this script

The only difference between a hidden field and a regular text box or other field is that it's hidden from the user.(*) It can still hold a value, assigned at runtime like above or even assigned via Javascript (like document.myform.somefield.value = "hello"). The value is passed in the POST or GET to the form receiver as any other field would be. It's just not directly visible to the user.

An aside: I invite you to read up on the usage of CGI.pm. It provides much easier ways if doing what you're doing, via methods like textfield(), hidden(), etc. (perldoc CGI will get you the CGI docs) There are also excellent tutorials here.

* And it's not truly hidden, anyone can view source, copy it insert their own values, post the form, so don't think of it as secret, just hidden. cheers!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-20 04:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found