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.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|