[PHP] Re: Sessions nightmare continue...SOLVED

2004-08-17 Thread Angelo Zanetti
Thanks to all that responded, I have finally found the problem: When I installed PHP again, I kept on modifying the PHP.ini in the WINNT directory (as specified in the manual) but the PHP.ini that was being looked up was the 1 in the c:\php directory so I kept on trying all new things and nothing

[PHP] Re: Sessions nightmare continue...

2004-08-17 Thread Craig Donnelly
Why are you testing if $_POST['submit'] is set are you posting something to the page?? In the two scripts you posted the code block wont be executed because there is no post variable being set. Try this: a1.php == =

[PHP] Re: sessions nightmare

2002-09-11 Thread Philippe Saladin
Your variable in session is called "Item", so session_register("SESSION") is wrong. It should be session_register("Item"). But, as you use directly the new syntax ($_SESSION) to affect the variable, you don't need session_register. The variable "Item" will be automatically registered when you writ

[PHP] Re: sessions nightmare

2002-09-11 Thread Erwin
> I want to be able to have a user login (which is completed), they > goto a search page (completed), and search for a particular item > (completed). A page will display all the links for the items searched > for (completed). What I want out of sessions is to when they click on > the link for a pa

[PHP] Re: sessions nightmare

2002-09-11 Thread lallous
I use JavaScript cookie to accomplish what you're doing in your case: function setCookie(name, value, expires, path, domain, secure) { var curCookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((d