Re: How to avoid the text box value to be printed when I click on IE Browser refresh button?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
If i understood correctly there is no short answer to this, as refreshing the page is exactly same as sending the parameters again by clicking on submit.
One thing you can do is sending the parameters by POST method , this way the user will be promted to confirm they want to refresh,
If this is not the sol, than you can while printing also send an extra hidden variable like refresh at the first time on submit button operation. 
<input type="hidden" name="refresh" value="1">
If this is set during the refresh operation show some error message.
Hope this helps if not pl. ask again.
Thanks
--
Regards,
Abhishek jain



----- Original Message ----
From: Anand Vijaya Kumar <anandvijayakumar@xxxxxxxxx>
To: php-objects@xxxxxxxxxxxxxxx
Sent: Monday, November 26, 2007 5:12:00 PM
Subject:  How to avoid the text box value to be printed when I click on IE Browser refresh button?

I would appreciate if someone could throw some light on this issue.

I have a form with a text box and a submit button. When I click on the submit button, I am able to echo the text box value in PHP. The problem is I am also able to echo the original text box value even when I click on the IE Browser refresh button.

The question is how to avoid the text box value to be printed when I click on IE Browser refresh button.

Note: I am echoing the text box value on the same form.

[Non-text portions of this message have been removed]





      ____________________________________________________________________________________
Get easy, one-click access to your favorites. 
Make Yahoo! your homepage.
http://www.yahoo.com/r/hs 

[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux