hok_si_la has asked for the wisdom of the Perl Monks concerning the following question:
Greetings Monks,
I have a script that generates a form using CGI.pm. This script is kind of a multi-purpose script, so the form action varies. On one of the actions, I am trying to do something like this.....
I would like the background script, 'changestatus.pl' in this case, to run while the browser is redirected to the ridiculous URL listed above. I read a few archived nodes about CGI::redirect but was unable to come up with as working solution. I would prefer to use CGI::redirect but using <script>window.location.href='ridiculous url'</script>is not out of the question.
Any pointers or references to related tutorials would be appreciated.
Thanks,
hok_si_la
I have a script that generates a form using CGI.pm. This script is kind of a multi-purpose script, so the form action varies. On one of the actions, I am trying to do something like this.....
$action = "/NewServer/scripts/admin/changestatus.pl NAME=form METHOD=p +ost onsubmit=window.location.href='getadminrequests.pl?$GRPATHCLEAN&a +rpath=$ARPATH&grpath=$GRPATH&requesttab=Server Request $id'\;"; <FORM ACTION=$action>
I would like the background script, 'changestatus.pl' in this case, to run while the browser is redirected to the ridiculous URL listed above. I read a few archived nodes about CGI::redirect but was unable to come up with as working solution. I would prefer to use CGI::redirect but using <script>window.location.href='ridiculous url'</script>is not out of the question.
Any pointers or references to related tutorials would be appreciated.
Thanks,
hok_si_la
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: onSubmit Redirect
by dorward (Curate) on Feb 04, 2005 at 17:46 UTC | |
by hok_si_la (Curate) on Feb 04, 2005 at 19:49 UTC | |
Re: onSubmit Redirect
by FitTrend (Pilgrim) on Feb 04, 2005 at 19:36 UTC | |
Re: onSubmit Redirect
by nobull (Friar) on Feb 04, 2005 at 19:21 UTC |
Back to
Seekers of Perl Wisdom