Topic awaiting preservation: PHP Session ... (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: |
posted 10-09-2003 09:21
Hello, |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 10-09-2003 10:40
shalvi: I suspect you are going to have to give us more information as what you have given us didn't make any sense. |
Bipolar (III) Inmate From: New Jersey, USA |
posted 10-09-2003 10:54
Shavi, |
Maniac (V) Mad Scientist From: :morF |
posted 10-09-2003 13:51
Uh, as far as I can tell he's not passing anything by a hidden except for the session ID so it can be continued on the next page. This is an accepted way of handling sessions in PHP. You can pass the session ID and session name by POST, GET or cookie. I prefer the cookie method personally. |
Nervous Wreck (II) Inmate From: |
posted 10-09-2003 14:14
hello, |
Maniac (V) Mad Scientist From: :morF |
posted 10-09-2003 14:38
Well for one thing you don't have a submit button your your form, so it can't do anything with it, plus the fact you're trying to load values out of the $_POST array on the same page as putting them into it...that won't work. On page two where you use $_SESSION is where you should be using $_POST |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 10-09-2003 14:46
Skaarjj: Good point - it was too early and the post and me weren't making sense. |
Nervous Wreck (II) Inmate From: |
posted 10-09-2003 15:48
well what i am trying to do is....get the email address and password in Form1(page1.php) then it goes to the Form2 ..and there user will provide user details like name,address,phone no etc..then in the Form2 after submission page3.php will add the information in the database.... |
Maniac (V) Inmate From: under the bed |
posted 10-09-2003 17:53
n/m |
Bipolar (III) Inmate From: New Jersey, USA |
posted 10-09-2003 18:38
First you need to get the values that have been submitted. As Skaarjj had written, you should be using $_POST to retrieve the values on page2.php. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 10-09-2003 18:42
I Think you are confusing how server-side PHP works as opposed to client side. |
Nervous Wreck (II) Inmate From: |
posted 10-09-2003 20:33
thanx guys.. it's working at last....thank you all |