Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Pass the Subroutine Name in form action value

by McDarren (Abbot)
on Jun 23, 2006 at 07:15 UTC ( #557100=note: print w/ replies, xml ) Need Help??


in reply to Pass the Subroutine Name in form action value

There is probably a more elegant way to do this, but you could do:

$query->startform(-method=>'POST', -action=>"newcgi.cgi?foo=report");

And then in newcgi.cgi, you have...

report() if param('foo') eq 'report';

Or something along similar lines.

Cheers,
Darren :)


Comment on Re: Pass the Subroutine Name in form action value
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (17)
As of 2015-07-28 18:53 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 (258 votes), past polls