Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

by snadra (Scribe)
on May 12, 2004 at 10:37 UTC ( #352688=note: print w/ replies, xml ) Need Help??


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

I think it would be better, if you would use the CGI module (perldoc CGI) to get your parameters. After you know the page you want to call do a redirect to that page. You can do that using the CGI module aswell.
print $query->redirect('http://somewhere.else/in/movie/land');

snadra

Sorry, it took me a while to send this post. Most of it was said already...


Comment on Re: How to make a <a href> link run a CGI script while passing parameters?
Re: Re: How to make a <a href> link run a CGI script while passing parameters?
by muralikrishna (Initiate) on May 12, 2004 at 10:45 UTC
    I am using param() method but it is returning me a null. It is like this. My page has 2 frames. The left side frame has links like Add Product, Edit Product Info, Delete Product etc. I want these three links to call my products.cgi. I want to know how to do it. I am calling the CGI as hREF=".../admin/products.cgi", I want to know How can I pass the value???

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2014-12-25 10:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (160 votes), past polls