Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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??


in reply to How to make a <a href> link run a CGI script while passing parameters?

(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

  • Comment on Re: How to make a <a href> link run a CGI script while passing parameters?

Replies are listed 'Best First'.
•Re: Re: How to make a <a href> link run a CGI script while passing parameters?
by merlyn (Sage) on May 12, 2004 at 15:54 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (None)
    As of 2024-04-19 00:12 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found