Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: passing data to other script via link

by arthas (Hermit)
on Jun 08, 2004 at 08:18 UTC ( #362235=note: print w/replies, xml ) Need Help??


in reply to passing data to other script via link

Don't pass the SQL queries that way, it's dangerous (as someone else already pointed out).

I would suggest you call your script with something like this:

navigate.pl?task=dsp

And, in your program you can have:

my $q = new CGI; SWTC: { $q->param('task') eq 'dsp' and do { dsp() last SWTC; }; $q->param('task') eq 'other' and do { other() last SWTC; }; };

You can then keep all the queries in the subs.

Hope this helps!

Michele.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2022-08-12 01:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?