print "<a href=http://site/page/script.pl?me=I\&you=U>Click Me</a>";
or
print "<a href='http://site/page/script.pl?me=I\&you=U'>Click Me</a>";
or 
print "<a href=\"http://site/page/script.pl?me=I\&you=U\";>Click Me</a>";
or 
print '<a href="http://site/page/script.pl?me=I&you=U";>Click Me</a>';

but beware what you want is /cgi-bin/ or cgi-bin/ .The first one is 
lookup the CGI root from the server, while the second one is lookup 
the script from the current folder.

Rgds,
Connie

----- Original Message ----- 
From: "Nazary, David" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 02, 2002 11:35 AM
Subject: How to make a hyperlink an argument for a CGI script


> Hi,
> 
> In the following web page how can I make "foo" to become an argument to
> "cgi-bin\script.pl" script when I click on "foo"?
> 
> <body>
> 
> <p><a href="cgi-bin/script.pl">foo</a></p>
> 
> </body>
> 
> Currently the script takes "" as an argument when I click on "foo". Any
> suggestion are appreciated.
> 
> Thanks
> David Nazary
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to