Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: onSubmit Redirect

by hok_si_la (Curate)
on Feb 04, 2005 at 19:49 UTC ( [id://428174]=note: print w/replies, xml ) Need Help??


in reply to Re: onSubmit Redirect
in thread onSubmit Redirect

First of all I thank both of you for your responses. Sorry I am just now responding. I was at lunch.

I am passing all of the form element data to the script changestatus.pl. That script will open up a DBI session and update all the table columns. The URL literally contains about a paragraph of information. Real long story there. I originally had this at the bottom of changestatus.pl

########################################################### sub printDone ############################################################ { my $url = "http://nettools/NewServer/scripts/adminrequests.pl"; print "Location: $url\n\n"; }

That worked out fine. The problem is that I now want the user to be redirected to a script (getlist) that lists all of the updated information. This script uses a tab function that I wrote which is why it needs cgi passed to it that would make any of Tolkien's works look like Cliff Notes.

I have considerred three methods of doing this.
1)Just use the code above but figure a way of going back 2 listings in the browser history.
2)Pass all of the necessary variables (those in $action) to changestatus.pl and make the changes to the function above.
3)Run a script while redirecting to the complicated URL I gave earlier. (Hardcoded equivelent to a history.go(-2)).This would be done using print redirect or something similar when the submit button is clicked.

I hope that clarifies the situation. Essentially it would be best if I could figure out a way to accomplish method 3, but if not, I can find a workaround using one of the first two ideas.

Thanks again,
Shane

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://428174]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-18 23:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found