Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Refresh after submit? How?
Old 09-26-2007, 05:48 PM Refresh after submit? How?
feraira's Avatar
BeTheBand!

Posts: 350
Trades: 0
I have a form on a page, which then submits itself to itself. Basically; the page acts as the processor and does what needs to be done. Problem is; once what is done is done, doesn't work up on the page UNTIL a refresh is made. Upon a refresh the data will be submitted again, how can I come by this and like automatically refresh it without re-sub?
feraira is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-26-2007, 05:56 PM Re: Refresh after submit? How?
feraira's Avatar
BeTheBand!

Posts: 350
Trades: 0
Done

echo "<meta http-equiv='REFRESH' content='0;url=http://www.yoursite.com/'>";
feraira is offline
Reply With Quote
View Public Profile
 
Old 09-27-2007, 08:47 AM Re: Refresh after submit? How?
mail4kaja's Avatar
Average Talker

Posts: 18
Name: R. Kaja Mohideen
Location: India
Trades: 0
Yes... Using META Tags is good. You can also display some message that the page will be redirected or the page will be refreshed in X seconds.
__________________
R. Kaja Mohideen

Please login or register to view this content. Registration is FREE

mail4kaja is offline
Reply With Quote
View Public Profile Visit mail4kaja's homepage!
 
Old 09-27-2007, 08:49 PM Re: Refresh after submit? How?
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
You can also use http redirect after processing form input to reload the page (which will also release post data from the form) if your processing is done before any other output is sent to the browser.

header('Location: http://www.domain.com/thispage.php');
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Refresh after submit? How?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.43934 seconds with 12 queries