Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Perl page redirection

by rpike (Scribe)
on Apr 30, 2010 at 14:23 UTC ( #837784=note: print w/ replies, xml ) Need Help??


in reply to Perl page redirection

Posting all of the code involved would be impractical :-) but I can post the few lines that I have in that redirect and such. Script A : print redirect( -uri => ${$aFileHash}{"xscript"}); Script B gets hit : form gets printed out and the action of the form is the value that was stored in ${$aFileHash}{"xscript"} (recursive call). In Script B : After the form gets printed to screen I put in the line print $ENV{"SCRIPT_NAME"} . " | " . referer(); exit(0); at the top of the script to see what gets passed back. I have other checks dependent on what the referer is. I won't get into that because right now all I'm interested in is figuring out if scriptB was called by the form generated by scriptB. In Script A is there a way to say completely replace the script in the browser? After Script A redirects to Script B, Script A is still showing in the URI.


Comment on Re: Perl page redirection

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (10)
As of 2015-07-29 19:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (267 votes), past polls