Re: [PHP] IE Problems: disappearing text with 'Back' button

2002-11-26 Thread Andre Dubuc
Hi Kevin,

Bunch of thanks to you. It works beautifully! Now, all I have to do is go 
back over 200+ files and fix 'em all!

Sigh . . . nice way to memorize your code!  :>

Btw, in my test code, I did have the ending ?> -- matter of act, I had two of 
them!! Hmmm -- it amazing how easily the obvious can escape my attention. 

Regards,
Andre


On Tuesday 26 November 2002 02:43 pm, Kevin Stone wrote:
> >  > ''){print "value='{$_SESSION['rfname']}'';}>
> >
> > but I just get a ? in the value field, not the name.
>
> Yeah there's a good reason for that.  You're not ending yoiur PHP tag!  :-P
>
> Joking aside you're on the right track.  This IS the way to do it.  You
> should never rely on the browsers cache to re-input form values in a
> multi-page form.  Allow me to clean that up for you a bit..
>
> 
>
> Hope that helps.  Good luck.
>
> -Kevin
>
>
> - Original Message -----
> From: "Andre Dubuc" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, November 26, 2002 12:29 PM
> Subject: [PHP] IE Problems: disappearing text with 'Back' button
>
> > A few people using IE have complained that when they click the 'Back'
>
> button
>
> > to edit their registration form, all info is lost and they're presented
>
> with
>
> > a blank form.
> >
> > I've read archives on this, and I really don't know what to do. The
>
> referring
>
> > page starts with
> >
> >  and I know the session variables
> > are passed. The referring page is headered to the check page where users
> > would click 'Back'
> >
> > The session variables are there too. Is there some way that I could:
> >
> > (a)  Prevent the 'blank-form-syndrome'
> >
> > or
> >
> > (b)  Encode the  so that the name is
> > filled in  - I've tried:
> >
> >  > ''){print "value='{$_SESSION['rfname']}'';}>
> >
> > but I just get a ? in the value field, not the name.
> >
> > or
> >
> > (c)  As much as hate to use it, javascript. I've coded everything without
>
> it,
>
> > so only if I can't accomplish a reasonable approximation of 'Back' in a
>
> php
>
> > hack.
> >
> > or
> >
> > (d)I read in one of the last archived messages about a workaround. After
>
> the
>
> > user clicks 'Back' and is confronted with a now-virgin form,  all they
>
> have
>
> > to do is click 'Refresh' in IE. Question is, does IE have a 'Refresh'
>
> button,
>
> > and does this, in fact, work? I have no way of testing this since I only
>
> have
>
> > Linux running. So, if some kind soul could verify whether this is true,
> > it would save me a whole pile of coding!
> >
> > I would be very grateful for any suggestions on to retrieve hyper-lost
>
> data
>
> > input using php.
> >
> > Tia, Andre
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php

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




Re: [PHP] IE Problems: disappearing text with 'Back' button

2002-11-26 Thread Kevin Stone
>  ''){print "value='{$_SESSION['rfname']}'';}>
>
> but I just get a ? in the value field, not the name.

Yeah there's a good reason for that.  You're not ending yoiur PHP tag!  :-P

Joking aside you're on the right track.  This IS the way to do it.  You
should never rely on the browsers cache to re-input form values in a
multi-page form.  Allow me to clean that up for you a bit..



Hope that helps.  Good luck.

-Kevin


- Original Message -
From: "Andre Dubuc" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 26, 2002 12:29 PM
Subject: [PHP] IE Problems: disappearing text with 'Back' button


> A few people using IE have complained that when they click the 'Back'
button
> to edit their registration form, all info is lost and they're presented
with
> a blank form.
>
> I've read archives on this, and I really don't know what to do. The
referring
> page starts with
>
>  and I know the session variables are
> passed. The referring page is headered to the check page where users would
> click 'Back'
>
> The session variables are there too. Is there some way that I could:
>
> (a)  Prevent the 'blank-form-syndrome'
>
> or
>
> (b)  Encode the  so that the name is
> filled in  - I've tried:
>
>  ''){print "value='{$_SESSION['rfname']}'';}>
>
> but I just get a ? in the value field, not the name.
>
> or
>
> (c)  As much as hate to use it, javascript. I've coded everything without
it,
> so only if I can't accomplish a reasonable approximation of 'Back' in a
php
> hack.
>
> or
>
> (d)I read in one of the last archived messages about a workaround. After
the
> user clicks 'Back' and is confronted with a now-virgin form,  all they
have
> to do is click 'Refresh' in IE. Question is, does IE have a 'Refresh'
button,
> and does this, in fact, work? I have no way of testing this since I only
have
> Linux running. So, if some kind soul could verify whether this is true, it
> would save me a whole pile of coding!
>
> I would be very grateful for any suggestions on to retrieve hyper-lost
data
> input using php.
>
> Tia, Andre
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



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




[PHP] IE Problems: disappearing text with 'Back' button

2002-11-26 Thread Andre Dubuc
A few people using IE have complained that when they click the 'Back' button 
to edit their registration form, all info is lost and they're presented with 
a blank form.

I've read archives on this, and I really don't know what to do. The referring 
page starts with 

 and I know the session variables are 
passed. The referring page is headered to the check page where users would 
click 'Back'

The session variables are there too. Is there some way that I could:

(a)  Prevent the 'blank-form-syndrome'

or

(b)  Encode the  so that the name is 
filled in  - I've tried:



but I just get a ? in the value field, not the name.

or 

(c)  As much as hate to use it, javascript. I've coded everything without it, 
so only if I can't accomplish a reasonable approximation of 'Back' in a php 
hack.

or

(d)I read in one of the last archived messages about a workaround. After the 
user clicks 'Back' and is confronted with a now-virgin form,  all they have 
to do is click 'Refresh' in IE. Question is, does IE have a 'Refresh' button, 
and does this, in fact, work? I have no way of testing this since I only have 
Linux running. So, if some kind soul could verify whether this is true, it 
would save me a whole pile of coding! 

I would be very grateful for any suggestions on to retrieve hyper-lost data 
input using php.

Tia, Andre




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