Want to refresh page without "must resend data" wa

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
haddaway
Forum Newbie
Posts: 1
Joined: Thu Oct 16, 2003 12:31 pm
Location: Maryland

Want to refresh page without "must resend data" wa

Post by haddaway »

Hi - very newbie here.

I have a GetData page that accepts userid,password. It POSTs those values to DoQuery page. If my users use the browsers refresh button, they get a warning saying "the page cannot be refreshed without resending the data." Then they have to press "Retry".

I would like to either have a "Refresh" button or just have the page refresh itself every 'x' seconds, BUT... I don't want them to see the warning window.

Is there a way to do this?

Thanks!
Last edited by haddaway on Thu Oct 16, 2003 2:50 pm, edited 1 time in total.
evilMind
Forum Contributor
Posts: 145
Joined: Fri Sep 19, 2003 10:09 am
Location: Earth

Post by evilMind »

Using javascript you can do something like:

Code: Select all

<script language="JavaScript1.2" type="text/javascript">
setTimeout("window.location.reload(true)", 90*1000); // refresh time in ms
</script>
That will refresh the window every 25 minutes ( I think if my math is correct.. not my best subject btw.)
Post Reply