RSS Forums RSS
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 2508 | Replies: 3
Reply
Join Date: Mar 2004
Posts: 732
Reputation: Phaelax is on a distinguished road 
Rep Power: 6
Solved Threads: 31
Phaelax Phaelax is offline Offline
Master Poster

delay forwarding of page

  #1  
Apr 28th, 2006
After a form is completed its submitted to another page to process the form. Once that's done, it forwards back to where visitor was. I want to display a message to the visitor first before moving to the next page, so how can I delay the page forwarding?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2006
Location: United Kingdom
Posts: 19
Reputation: 100% is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
100%'s Avatar
100% 100% is offline Offline
Newbie Poster

Re: delay forwarding of page

  #2  
May 3rd, 2006
What are you using, did you write the code?

You might want to post it on here so others can help you out further.

Does the form info be sent to you by email? If so there are afew I found for free while searching, have alook and test to see if they have the options you want, if that is what you want.

Hope that makes sence lol

HTML/XHTML - OK
CSS - OK
JAVASCRIPT - Learning
PHP - Learning
Reply With Quote  
Join Date: Aug 2005
Location: somewhere in time
Posts: 81
Reputation: TopDogger is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 5
TopDogger's Avatar
TopDogger TopDogger is offline Offline
Junior Poster in Training

Re: delay forwarding of page

  #3  
May 3rd, 2006
Have you looked at the PHP sleep() function? Plugging a number in causes the program to pause for teh number of seconds you plug in as a value.

sleep(2); causes the program to pause for 2 seconds.
Reply With Quote  
Join Date: Oct 2004
Location: San Francisco, CA
Posts: 338
Reputation: paradox814 is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 2
paradox814's Avatar
paradox814 paradox814 is offline Offline
Posting Whiz

Re: delay forwarding of page

  #4  
May 4th, 2006
another option is to use a meta-redirect tag, it's not really php but it does the job.
<meta http-equiv="Refresh" content="4;url=http://www.domain.com/link.html">
that code will wait 4 seconds before sending you to http://www.domain.com/link.html

if you use the sleep function, that will just cause the code to wait, but then you will still need to use either a meta-redirect tag (which i used above) or a header tag

[php]header('Location: http://www.domain.com/link.html');[/php]
the only problem with a header tag is that no output can be sent to the user (or you will get an error) so the meta tag might be easier in this case
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 8:31 pm.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC