Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-29-2004, 04:18 PM
WebProWorld Pro
 

Join Date: May 2004
Location: Florida
Posts: 174
iamrussell RepRank 0
Default Refresh Question

Does anybody know a way to have a one-time refresh happen right when a page loads?

In other words have it set to "0" but have it refresh just the one time when the page loads.
__________________
I Am Russell
Incorporation Services
Get a free Mini Mac!
Reply With Quote
  #2 (permalink)  
Old 09-30-2004, 02:51 AM
WebProWorld Pro
 

Join Date: Sep 2004
Location: Tennessee
Posts: 121
TN Todd RepRank 0
Default

Out of curiiosity WHY would you want to do that?
Reply With Quote
  #3 (permalink)  
Old 09-30-2004, 03:54 AM
mikmik's Avatar
WebProWorld 1,000+ Club
 

Join Date: Aug 2003
Location: Edmonton, AB, Canada
Posts: 3,406
mikmik RepRank 1
Default

<meta http-equiv="refresh" content="0">

Place in head, set number to seconds, I think!
0 = zero LOL
1 = 1 second
2 = 2 seconds <meta http-equiv="refresh" content="2">

http://webdesign.about.com/cs/metatags/a/aa080300a.htm
__________________
What I am is what I am, are you what you are, or what.
Eddie Brickel
Reply With Quote
  #4 (permalink)  
Old 09-30-2004, 10:46 AM
WebProWorld Pro
 

Join Date: May 2004
Location: Florida
Posts: 174
iamrussell RepRank 0
Default

Thanks, but with that code it will costantly be reloading in a loop. I need it to reload just once.

This is for a form page. I need it to refresh so that it erases any previous info.
__________________
I Am Russell
Incorporation Services
Get a free Mini Mac!
Reply With Quote
  #5 (permalink)  
Old 09-30-2004, 10:59 AM
paulhiles's Avatar
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: UK
Posts: 2,803
paulhiles RepRank 0
Default

Quote:
Originally Posted by iamrussell
This is for a form page. I need it to refresh so that it erases any previous info.
What is your current form written in? is it a simple HTML form or does it use server-side scripting?
Are you submitting the form to a form processing script (ASP, CGI, PHP)?

Any additional information would be useful.

Paul

PS. This post has moved from Site Design into Web Programming.
Reply With Quote
  #6 (permalink)  
Old 09-30-2004, 05:07 PM
WebProWorld Pro
 

Join Date: May 2004
Location: Florida
Posts: 174
iamrussell RepRank 0
Default

Well, it's all php. I was hoping there would be a way to do it with meta in the head section but I dodn't think there is a way to have it refresh just once. Cos once the page refreshed it would say "Hey, I gotta refresh again!"
__________________
I Am Russell
Incorporation Services
Get a free Mini Mac!
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: ,



Thread Tools
Display Modes

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

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


Search Engine Optimization by vBSEO 3.2.0