PHP Form Cookie Question

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I have one form where a query is run based on the word placed into a
text box.  The operator enters their name for example, on one form and
the query shows up on a second page.  I'm using PHP, MySQL and Apache
and want the user to be able to click their browser back button and
not have to continuously re-enter their query word in the text box.  I
know that some browsers allow this type of activity but in this case
and using Internet Explorer, that's not an option so...

Are there any good cookie scripts that will allow for this?  Or is
there a better way of handling it?


Re: PHP Form Cookie Question

Quoted text here. Click to load it

I should mention too that my hope is, to find a cookie solution that
last for that single browser session only.  thanks

Re: PHP Form Cookie Question

In article

Quoted text here. Click to load it

Use a JASON form where JAVASCRIPT is used with hidden fields.  It will
break with people that disable JAVASCRIPT, so you'll have to decide if
your sub-optimal solution is "better" or having everything on one form
is an easier user experience.  BTW, this isn't a php issue.  It's
strictly a browser-based UI issue requiring HTML/JAVASCRIPT.

DeeDee, don't press that button!  DeeDee!  NO!  Dee...
[I filter all Goggle Groups posts, so any reply may be automatically ignored]

Re: PHP Form Cookie Question

On Sat, 9 Oct 2010 19:32:07 -0700 (PDT), ""

Quoted text here. Click to load it

You should be able to implement a solution using session variables.
Geoff Berrow (Put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs

Re: PHP Form Cookie Question

On 10/9/2010 10:25 PM, wrote:
Quoted text here. Click to load it

What is a "cookie script"?

But no, you cannot do this reliably in PHP because when the user hits
the "back button", the browser may pull the page from its cache, and not
even go to the server.  So no PHP code will ever be run.

Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.

Site Timeline