Re: remembering variables between pages when using forms ...
| From: | Julio Nobrega | Date: | Fri, 19 Oct 2001 03:17:59 +0000 |
| Subject: | Re: remembering variables between pages when using forms ... | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-71541@lists.php.net to get a copy of this message | ||
Are you inserting the php on the hidden's value attribute?
Something like:
<input type="hidden" name="city" value="<?php echo $city;
?>">
Also, this hidden input must be on a form... If you don't have a 'submit'
button on the second page (I understood only the first and third pages are
forms), you either could put an 'onunload' javascript event on the <body>
tag to submit the form or register it on a session, to later retreive it
anywhere you would like (i.e, the third page)
--
Julio Nobrega.
Um dia eu chego lá:
http://sourceforge.net/projects/toca
"Baker Downloads" <kmurrah@bakergrfx.com> wrote in message
news:000401c157ef$cf9f2c00$ad000001@august.net...
> i hope i can make my question understood ...
>
> i've input a value $city in my form, and i can retrieve it on the
following
> page (the page which was the "action" of the form) ... but then, when i
try
> to use a "hidden" type to move it to my next page (which is a form), i
lose
> the value ... i cannot access it from a page within the form ...
>
> does that make sense? if so, can anyone help?
>
> thanks in advance.
>
> ken
>
>
>