Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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?
Replies are listed 'Best First'.
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 studying the Monastery: (9)
As of 2015-07-31 05:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls