Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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
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 avoiding work at the Monastery: (4)
As of 2019-05-22 07:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (138 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!