nasa has asked for the wisdom of the Perl Monks concerning the following question:

I have a script running, it generates a HTML page by
print <<END_ERR_HTML;
It then stops by command
END_ERR_HTML
exit;
The HTML page it generated contains an input button
<input type=submit VALUE=" Go ahead with script.">
What command can be used to make the button cause
the script to continue from where it left off.

Replies are listed 'Best First'.
Re: stop start script
by Corion (Patriarch) on Feb 08, 2006 at 07:42 UTC

    There is no way to make the script "continue where it left off". Your script outputs the complete page and then ends.

    What you can do is write a second script that gets called by the page, or call your original script with some additional parameters that tell it what to do now. But the programs state and variables do not survive across HTML pages.

Re: stop start script
by jpeg (Chaplain) on Feb 08, 2006 at 07:45 UTC
    It sounds like what you want are sessions.
    --
    jpg
Re: stop start script
by idle (Friar) on Feb 08, 2006 at 07:33 UTC
    I don't really understand your question, but why don't you use CGI.pm?