Jump to content


Photo

refresh?


  • Please log in to reply
4 replies to this topic

#1 Goatman

Goatman
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 07 October 2006 - 04:54 PM

How can I get a windows to refresh?

Thanks

#2 marcus

marcus
  • Members
  • PipPipPip
  • Advanced Member
  • 1,842 posts
  • LocationRochester, NY

Posted 07 October 2006 - 04:59 PM

<script>
function refresh() {
window.location.href="index.php";
}

</script>

<a href="javascript: refresh();">Refresh</a>

or

<meta http-equiv="refresh" content="15; url=target.html">


#3 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 07 October 2006 - 05:16 PM

<?php

//  refresh / redirect to an internal web page
//  ------------------------------------------
header( 'refresh: 5; url=/webdsn/' );
echo '<h1>You will be re-directed in 5 seconds...</h1>';


//  refresh / redirect to an internal web page
//  ------------------------------------------
header( 'refresh: 3; url=/' ); # redirects to our homepage
echo '<h1>You will be re-directed in 3 seconds...</h1>';


//  refresh / redirect to an external web page
//  ------------------------------------------
header( 'refresh: 0; url=http://www.example.net' );
echo '<h1>You won\'t know what hit you!</h1>';
?>



Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#4 marcus

marcus
  • Members
  • PipPipPip
  • Advanced Member
  • 1,842 posts
  • LocationRochester, NY

Posted 07 October 2006 - 05:18 PM

ah, never knew that red, awesome

#5 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 07 October 2006 - 09:33 PM

<a href="javascript:location.reload(true)">Refresh page</a>

Refreshes the page you're looking at when clicked.

Since this is nothing to do with php (as far as I can tell), I'm moving it to the HTML forum.
Legend has it that reading the manual never killed anyone.
My site




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users