Topic awaiting preservation: Passing variables from a form to another html page (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: |
posted 09-29-2005 06:21
I am trying to pass variables submitted by form onto another html page where i can echo it out just to see if it is working. the trouble is when i echo it out on the next page i get nothing. it seems liket he variables isnt storing. my code is: |
Paranoid (IV) Inmate From: A graveyard of dreams |
posted 09-29-2005 12:17
To access the variable on the second page you need to use $_POST['name'], instead of just $name. |
Nervous Wreck (II) Inmate From: |
posted 09-29-2005 17:04
thanks for the help but i also figured out what the problem was. if any one is intrested i had to Check the php.ini file and see if register_globals = On that fixed the problem. thanx Veneficuz for your help as well |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
posted 09-29-2005 17:10
Don't do that! |
Nervous Wreck (II) Inmate From: |
posted 09-30-2005 00:50
okay yea i was thinking the same things but im just doing it for the purpose of this tutorial i will change it back...thank you |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 09-30-2005 14:30
From my blog: |
Nervous Wreck (II) Inmate From: |
posted 10-05-2005 17:05
i looked at the page (above) but what would i do with the hidden inputs how does that help me pass things from one page to another. and what is the advantages of doing it this way |
Bipolar (III) Inmate From: Australia |
posted 10-05-2005 17:44
Hidden inputs are merely inputs that are... hidden . Its often useful to use them for things, they are treated like any other input when retreiving the data. |