Jump to content

Recommended Posts

Okey, since i'm a noob when it comes to PHP I wonder if there is any function that will refresh the current page every time you run it.

I want something like this:
[code]
<?
if($gnarf == '1' && $yoda == true) {
refresh the page code here
}
?>
[/code]

Okey, so to my next question.

If I got a form with a button, let's call this button Hello. What I want to do with this button is make it impossible to click for, let's say 2,4seconds. Is this possible?
[!--quoteo(post=380076:date=Jun 4 2006, 07:08 PM:name=thorpe)--][div class=\'quotetop\']QUOTE(thorpe @ Jun 4 2006, 07:08 PM) [snapback]380076[/snapback][/div][div class=\'quotemain\'][!--quotec--]
#1
[code]
<?
if($gnarf == '1' && $yoda == true) {
  header("Location : ".$_SERVER['PHP_SELF']);
}
?>
[/code]
#2 Is a javascript question.
[/quote]

Okey, good to know it's a javascript then.

But I can't get it to refresh the page anyway, nothing happens when using that header code... any clue?
you can do this in several ways. Mainly by using header function.

check out the link below. It shows different ways you can do it. you can specify the second that you want to refersh the page.

[a href=\"http://www.desilva.biz/php/phprefresh.html\" target=\"_blank\"]http://www.desilva.biz/php/phprefresh.html[/a]

Regards,
FiReDrOp
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.