in reply to Passing Variables in CGI
Place your parameters at the end of the URL, after a question mark, separated by the character '&'.
For example, if I want to pass the parameters 'param1' and 'param2' with the values 'value1' and 'value2', I would do:
For example, if I want to pass the parameters 'param1' and 'param2' with the values 'value1' and 'value2', I would do:
You can then access the values in the CGI after having written a function to parse the environment (it is already done for you if you use the module CGI.pm, so use this module).http://www.myurl.com?param1=value1¶m2=value2
|
---|
In Section
Seekers of Perl Wisdom