| 12:02 pm on Dec 29, 2008 (gmt 0)|
...the problem is in this part of the code:
|if(!empty($_POST) && !isset($_SESSION)) |
It is set once, so the second time it just goes to the else.
You probably don't need to see if the session is set, so the following line would be sufficient.
| 12:13 pm on Dec 29, 2008 (gmt 0)|
...and btw session_register is long deprecated now, you can use something similar to $_SESSION['anything'] = $_POST['something']; to create a session.
| 12:21 pm on Dec 29, 2008 (gmt 0)|
yeah I know about the session_register bit but my server is not on 5.3 or above so will get rid of that once the server is upgraded.
Thanks for your help, still working on it!
| 12:22 pm on Dec 29, 2008 (gmt 0)|
Um, you are doing a session_start, right?
| 12:30 pm on Dec 29, 2008 (gmt 0)|
|Use of $_SESSION is preferred, as of PHP 4.1.0 |
|If your script uses session_register(), it will not work in environments where the PHP directive register_globals is disabled. |
|As of PHP 4.2.0, the default value for the PHP directive register_globals is off . . . The PHP community discourages developers from relying on this directive, and encourages the use of other means, such as the superglobals. |
| 12:34 pm on Dec 29, 2008 (gmt 0)|
gotcha, have removed them, see how that works in a bit but first to fix this $_SESSION issue. Driving me up the wall!
| 12:43 pm on Dec 29, 2008 (gmt 0)|
Got it! Thanks guys! Removed all session_registers and all seems well.