Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: How to make a <a href> link run a CGI script while passing parameters?by exussum0 (Vicar) |
on May 12, 2004 at 10:30 UTC ( [id://352686]=note: print w/replies, xml ) | Need Help?? |
(Deja-vu)
Check out CGI and the param method/function. You can easily get the value of a variable you pass with it. The format for it is
http://mysite.com/my.cgi?variable1=my%20value&variable2=othervalue If you look up the HTTP & CGI specs, you will see the significans of the ? + % and & symbols. ? saying, "this is where my url location ends, the rest is variable assignments. + are spaces encoded. %## is a urlencoded character, useful for passing spaces, pluses and ANYTHING. & is a variable assignment seperator. = of course, is how you assign a value to a variable. Tnx Podmaster for the HTTP/CGI correction
In Section
Seekers of Perl Wisdom
|
|