Jeff Smith
|
| Posted: 03/28/2002, 9:36 AM |
|
I have a site developed with CC 2.05 using PHP 4 with templates running on Apache 1.3.22. The page works fine with IE. However, with Netscape 4.7, when I hit UPDATE on a page I get a screen titles "302 Found" and a message on the page of "The document has moved here". "here" is a link to the page and when selected takes you to the correct page with the correct information and changes. Does anyone have any suggestions. Thanks for any help.
|
|
|
 |
Nicole
|
| Posted: 03/29/2002, 1:00 AM |
|
Jeff,
most probably this is caused by the fact that page contains a redirect to itself, that is interpreted by Netscape as a possible infinite loop, that is untrue in this case. To circumvent this , add the following code into
Before Insert, Before Update, Before Delete and Before Cancel events:
- if there's no input parameters for the form marked as 'Transfer'
$sFileName .= "?quirk=" . date("Y-m-d hh:mm:ss");
- if there's input parameter(s) for the form marked as 'Transfer'
$sParams .= "&quirk=" . date("Y-m-d hh:mm:ss");
This will make Netscape think that this is a "different" page as
it has a parameter containing a different value each time.
|
|
|
 |
Jan
|
| Posted: 03/29/2002, 2:16 AM |
|
codecharge redirects to a relative url.
so to solve, change the following code:
header("Location: ".$sActionname);
into:
header("Location: http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['P...]).$sActionname);
|
|
|
 |
Jeff
|
| Posted: 03/29/2002, 8:38 AM |
|
Thanks for all the input guys. Adding the following to the "Before Cancel" and "Before Execute" events solves the problem.
$sActionFileName .= "?nsid=".date("is");
All forms that recall the same page have to have this fix. I hope this helps someone else. By the way, nsid is for NetScape ID. Thanks again.
|
|
|
 |
|