hi,
got a new prob, how can i create a php page that automatically refreshes each time i access the page.
iraberyl
0
Newbie Poster
Recommended Answers
Jump to Posthi,
got a new prob, how can i create a php page that automatically refreshes each time i access the page.I'm sure you dont want to cuase an infinite loop. What are you trying to do?
Jump to Posthi,
got a new prob, how can i create a php page that automatically refreshes each time i access the page.explain in what way, you expect the PHP to work for you.
Otherwise every page whether PHP or HTML refreshes itself whenever you will refer/call to it
Jump to Postits like this, when i add an item from the drop down menus and submit it, the next form that shows is the table containing the item that i just add but every first item that i add was not displayed. the page only shows the table but the first …
Jump to Post<?php header("Location: http://yoursite.com/index.php"); exit; //above must be at very top before any browser output
Jump to Post…cwarn23 thanks for the elaboration.But are you trying to say that, the mysql insert will be executed in the below code as there is no exit after the header() -
if(something) { header("Location:new_url.php"); mysql_query($insert_query); }
compared to the code below -
if(something) { header("Location:new_url.php"); exit; mysql_query($insert_query); }
All 19 Replies
leviathan185
14
Junior Poster
network18
15
Practically a Master Poster
iraberyl
0
Newbie Poster
network18
15
Practically a Master Poster
cwarn23
387
Occupation: Genius
Team Colleague
Featured Poster
iraberyl
0
Newbie Poster
venkat0904
1
Junior Poster
network18
15
Practically a Master Poster
cwarn23
387
Occupation: Genius
Team Colleague
Featured Poster
nav33n
472
Purple hazed!
Team Colleague
Featured Poster
network18
15
Practically a Master Poster
cwarn23
387
Occupation: Genius
Team Colleague
Featured Poster
venkat0904
1
Junior Poster
network18
15
Practically a Master Poster
nav33n
472
Purple hazed!
Team Colleague
Featured Poster
cwarn23
387
Occupation: Genius
Team Colleague
Featured Poster
network18
15
Practically a Master Poster
venkat0904
1
Junior Poster
iraberyl
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.