FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PHP Form Cookie Question
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: PHP Form Cookie Question [message #170095 is a reply to message #170093] Sun, 10 October 2010 02:32 Go to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 10/9/2010 10:25 PM, jcage(at)lycos(dot)com wrote:
> Hello,
>
> 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?
>
> TIA

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.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Process queue without cron jobs
Next Topic: instructor solution manual for Electrical Machines, Drives and Power Systems (6th Ed., Theodore Wildi)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 16:58:24 GMT 2024

Total time taken to generate the page: 0.04852 seconds