CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
link at end of script to open another script with variables

 



gerble1000
User

Oct 8, 2012, 7:04 AM

Post #1 of 4 (1325 views)
link at end of script to open another script with variables Can't Post

is it possible to have an image link put into the "script finished message" that when clicked will open another perl script and transfer the variables over to use inside that script.

so at the moment i have

Code
print"script succesfully finished";

and maybe underneith that would be an image and when clicked would transfer $variable1 $variable2 over and execute the script.
here is how i imagine it would look


Code
 
<img src="image.gif" onclick="otherscript.pl [$variable1,$variable2]">


can i do something like this if so how would i go about it


Laurent_R
Veteran / Moderator

Oct 8, 2012, 10:38 AM

Post #2 of 4 (1317 views)
Re: [gerble1000] link at end of script to open another script with variables [In reply to] Can't Post

If your script is really finished, then you no longer have access to its variables.

There may be a way of cheating, i.e. print "Script is finished" while it is not really finished but in facts waits for some input from the user.


gerble1000
User

Oct 8, 2012, 10:48 AM

Post #3 of 4 (1314 views)
Re: [Laurent_R] link at end of script to open another script with variables [In reply to] Can't Post

thats sounds ok.
how do we do this then


gerble1000
User

Oct 9, 2012, 2:15 AM

Post #4 of 4 (1296 views)
Re: [Laurent_R] link at end of script to open another script with variables [In reply to] Can't Post

would it be easier to icorporate both scripts together and have the script wait at the end for a click on image to run another function.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives