Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: passing data to other script via link

by arthas (Hermit)
on Jun 08, 2004 at 08:18 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-04-23 07:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found