So let me try and convey what's happening here... it's a little awkward.
I submit a form to a script called process.php...
the top two lines of process.php are
Then I do some if statements which check if a certain checkbox is checked, if it is I do a
(Yes I'm breaking out of a frame right there... I've also tried window.location, to open test.php in the frames, same results)
Here are the entire contents of test.php
So, I submit my form, and I get taken to test.php, and I see
Array
(
)
Array
(
)
Odd, no?
Ok, so then I hit the back button, hit the frame navigation button that lets me re-fill out the form, click submit, and I get my session array appropriately populated.
Additionally, I've printed out the $_SESSION array instead of redirecting the page, and it is appropriately filled. It just seems the redirect blows away the session the first time and the first time only.
I'm assuming it's something with the redirect, though I'm not really sure. (Going to attempt some Header.location and meta redirects now)
Thanks for any help you may be able to offer,
Rob
PHP 4.3.1
Apache 2.0
Windows XP Pro
I submit a form to a script called process.php...
the top two lines of process.php are
Code:
require "defines.inc";
session_start();
Then I do some if statements which check if a certain checkbox is checked, if it is I do a
Code:
$_SESSION["my_wizard"] = $_POST;
then I echo to the browser
<script language="javascript">
top.location = "[URL unfurl="true"]http://webroot/test.php";[/URL]
</script>
Here are the entire contents of test.php
Code:
<?php
session_start();
echo "<pre>";
print_r($_SESSION);
print_r($_POST);
echo "</pre>";
?>
So, I submit my form, and I get taken to test.php, and I see
Array
(
)
Array
(
)
Odd, no?
Ok, so then I hit the back button, hit the frame navigation button that lets me re-fill out the form, click submit, and I get my session array appropriately populated.
Additionally, I've printed out the $_SESSION array instead of redirecting the page, and it is appropriately filled. It just seems the redirect blows away the session the first time and the first time only.
I'm assuming it's something with the redirect, though I'm not really sure. (Going to attempt some Header.location and meta redirects now)
Thanks for any help you may be able to offer,
Rob
PHP 4.3.1
Apache 2.0
Windows XP Pro