Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Calling different methods based on a CGI parameter

by wfsp (Abbot)
on May 21, 2008 at 12:52 UTC ( [id://687762]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Calling different methods based on a CGI parameter
in thread Calling different methods based on a CGI parameter

I had a feeling you'd say that. :-)

You would be generating code based on user input (data from outside). Most monks will argue quite strenuously that this is a bad idea. Really.

You will be tempted to turn off strict and warnings, you will probably have to turn off taint mode too.

Your code should decide which sub to run, not the the user. Have a look at the Tutorials on web programing (particularly Security in CGI Programming) and, please, take another look at dispatch tables.

update: added link

  • Comment on Re^3: Calling different methods based on a CGI parameter

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://687762]
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: (6)
As of 2024-04-24 17:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found