Posted by Colin McKinnon on 09/15/05 11:29
bobkaku wrote:
>
> I added on the first script:
>
> <?
> session_start();
> .
> .
> .
> session_register($MyVar);
>
Don't use session_register - reference a mamber of the $_SESSION array
directly e.g.
print $_SESSION['MyVar'];
Otherwise your code will only work if register_globals is on (nothing to do
with the error messages you were getting - see Zeldor's response)
C.
[Back to original message]
|