Thanks. The problem exists either way! For some reason that is beyond me,
the combination of a javascript being called and the document being parsed
through php is the cause. Again if I simply rename to .htm then it is
"fine."

Anyhow I am indeed relying on the browser but that is not a problem in my
situtation.

I did note that even with the .htm version that the value is not in the
source even though it is showing on the page. I would still like to know how
this is.

I would prefer not to have to tell the users "dont use the browser back
button, use the back button icon on the page instead." and force the page to
not be cached. Any other ideas?




<Nelson Rodríguez-Peña Alarcón> wrote in message
news:[EMAIL PROTECTED]
> Hi Paul,
>
> Paul wrote:
> > I have a .php page. There are several form fields. When I populate
> > the fields, submit to another page, and then use the browser's back
> > button, the data is still there. This is indeed what I want.
> >
> > HOWEVER, when one field has a javascript event (ie. onClick open a
> > browser window) when I submit the form, and try to go back, the data
> > is gone :(
>
> Question: are you really filling the form with the values sent by the
> user with, say, PHP, or are you relying on the ability of some browsers
> to 'remember' form data?
>
> You should be dynamically filling the form using PHP, then this wouldn't
> happen, something like:
>
> <input type="text" value="<?php echo $thisItemValue; ?>" name="bla" />
>
> hope it helps.
>
> -- 
>
>
> regards,
>
> ------------------------------------------------------------
>   Nelson Rodríguez-Peña A.
>   Diseño y Desarrollo
>   Web & Multimedia
> ------------------------------------------------------------

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to