Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Help understanding this script

by sedhed (Scribe)
on Jul 18, 2002 at 16:31 UTC ( #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 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?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2022-08-08 14:02 GMT
Find Nodes?
    Voting Booth?

    No recent polls found