What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » PHP: refreshing a page with a button

PHP: refreshing a page with a button
Author: Message:
Weyzza
Veteran Member
*****

Avatar
SoCal sunset > *

Posts: 1170
Reputation: 29
– / Male / –
Joined: May 2003
O.P. RE: PHP: refreshing a page with a button
I tried both methods and came up with some conclusion:
code:
if( $_POST['ok_btn'] == '1' )
    header( 'refresh: 0; url=http://www.example.net' );
I need to click the button twice to get "the refresh effect."
Can you explain this to me?
code:
if( $_POST['ok_btn'] == '1' )
    header("Location: page.php");
This has the closest result I want.

However, both methods don't really do "refresh" instead they redirect users to the URL in the link.
So, I click "Back" button on my browser, it goes to the page before the change was made.

I hope you understand what I mean :p
Thanks again.
Registered 7854 days, 4 hours, 39 minutes, 50 seconds ago.
Happy Birthday, WDZ

06-28-2006 10:35 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
PHP: refreshing a page with a button - by Weyzza on 06-28-2006 at 09:01 PM
RE: PHP: refreshing a page with a button - by Ezra on 06-28-2006 at 09:40 PM
RE: PHP: refreshing a page with a button - by Lou on 06-28-2006 at 09:41 PM
RE: PHP: refreshing a page with a button - by Ezra on 06-28-2006 at 09:44 PM
RE: PHP: refreshing a page with a button - by Lou on 06-28-2006 at 09:46 PM
RE: PHP: refreshing a page with a button - by Weyzza on 06-28-2006 at 10:35 PM
RE: PHP: refreshing a page with a button - by Ezra on 06-28-2006 at 10:41 PM
RE: PHP: refreshing a page with a button - by lizard.boy on 06-28-2006 at 11:49 PM
RE: PHP: refreshing a page with a button - by Jhrono on 06-29-2006 at 12:05 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On