[PHP] Sessions vs passing variables

2002-07-21 Thread Mike Mannakee
When I try to pass a variable from one page to another the variable is completely inaccessible IF I have a session going. The data has to be passed from one page to the next through the link, as the link tells which product the user hit. Any thoughts? Mike Mannakee -- PHP General Mailing

RE: [PHP] Sessions vs passing variables

2002-07-21 Thread John Holmes
When I try to pass a variable from one page to another the variable is completely inaccessible IF I have a session going. The data has to be passed from one page to the next through the link, as the link tells which product the user hit. Any thoughts? Is there a variable by the same name

Re: [PHP] Sessions vs passing variables

2002-07-21 Thread Mike Mannakee
No, The strange thing is there isn't. I have a test page that links to the order form, having this html: form action=order_form.php method=post input type=hidden name=prod_ids[] value=9 input type=hidden name=prod_ids[] value=8 input type=hidden name=prod_qtys[] value=1 input type=hidden

RE: [PHP] Sessions vs passing variables

2002-07-21 Thread John Holmes
: Re: [PHP] Sessions vs passing variables No, The strange thing is there isn't. I have a test page that links to the order form, having this html: form action=order_form.php method=post input type=hidden name=prod_ids[] value=9 input type=hidden name=prod_ids[] value=8 input type=hidden

Re: [PHP] Sessions vs passing variables

2002-07-21 Thread Mike Mannakee
---John Holmes... -Original Message- From: Mike Mannakee [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 21, 2002 10:57 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Sessions vs passing variables No, The strange thing is there isn't. I have a test page that links to the or

RE: [PHP] Sessions vs passing variables

2002-07-21 Thread John Holmes
I'm on a server with php version 4.2.1 with register globals on. The main test has been can I access the variables in the script? Oddly enough, if I didn't use an array they are there for me. Turns out it's only when I'm trying to pass an array. Single variables works fine. I'm

Re: [PHP] Sessions vs passing variables

2002-07-21 Thread Mike Mannakee
Right, I understand I should be able to access them. That's the whole problem. They're not there. I can do one of two things and they magically become available: 1. Don't start the session. 2. Use single variables, not arrays. #2, however, would create a problem in that I intend to set it

[PHP] sessions and passing variables

2002-04-08 Thread rarmin
Is there a way to pass variables (objects) across the different sessions. I thought of sharing one object for all users that access my web site (it's an object that does some operations with files common to all users, like reading and writing). Any ideas? Tnx in advance. Armin -- PHP