Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Passing javascript variables to Perl CGI

by grep (Monsignor)
on Jul 20, 2007 at 15:13 UTC ( #627810=note: print w/replies, xml ) Need Help??


in reply to Passing javascript variables to Perl CGI

Create a hidden input element in the form and set the value with javascript. Then it will be passed as a CGI parameter.

One other thing - You should also remember that some people will have JS off or blocked, so having a CGI only alternative is always recommended.

UPDATE: added caveat

  • Comment on Re: Passing javascript variables to Perl CGI

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://627810]
help
Chatterbox?
LanX watching a rerun of Bladerunner at TV, interesting concept of future there ...
[LanX]: ... smoking is still legal.

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2017-12-13 19:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (377 votes). Check out past polls.

    Notices?