•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 363,558 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,885 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 2843 | Replies: 4
![]() |
I know how to catch an action from someone entering page.php and then set a default to page=1 and have the action for page=1 to load page=2, but how should I make page.php to catch 1,2,3,4,5,infinity so it keeps loading until the user closes the browser?
reloading can be done using
header("Location: page.php?page=n");
(where n = number)
catching empty action can be done like this
if (!isset($action) or $action=="") {
$action="page1";
}
catching page =1 can be done like this
if ($action=="page1") {
header("Location: page.php?page=2");
}
etc.
reloading can be done using
header("Location: page.php?page=n");
(where n = number)
catching empty action can be done like this
if (!isset($action) or $action=="") {
$action="page1";
}
catching page =1 can be done like this
if ($action=="page1") {
header("Location: page.php?page=2");
}
etc.
:cheesy: a vBulletin fan community @ vBulletin.nl :cheesy:
•
•
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,869
Reputation:
Rep Power: 32
Solved Threads: 109
I'm confused what this does ... it keeps redirecting to page 1 and then page 2 and then page 3 ... never stopping in between? I'm lost how this would be useful. Sorry floris but it's 3:30 am here
!
! Dani the Computer Science Gal
Do you run a computer-related website? Feature it in our niche link directory!
Do you run a computer-related website? Feature it in our niche link directory!
•
•
•
•
Originally Posted by cscgal
I'm confused what this does ... it keeps redirecting to page 1 and then page 2 and then page 3 ... never stopping in between? I'm lost how this would be useful. Sorry floris but it's 3:30 am here!
:cheesy: a vBulletin fan community @ vBulletin.nl :cheesy:
•
•
Join Date: Feb 2002
Location: Long Island, NY
Posts: 1,134
Reputation:
Rep Power: 12
Solved Threads: 2
What do you mean by "catching an action"? Is "action" a URL variable passed to a script? Do you want to reload/refresh the page according to an integer value of a URL variable?
_.:: my websites ::._
blog @ www.samaru.net * engi No Jutsu @ www.narutorp.net * portfolio @ shinylight.com
deviantART: inscissor
blog @ www.samaru.net * engi No Jutsu @ www.narutorp.net * portfolio @ shinylight.com
deviantART: inscissor
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
Similar Threads
- How to 'refresh' a php page? (PHP)
- View HTML source in php page? (PHP)
- Use php to load a page in a page? (PHP)
- sort on field names; refresh page? (PHP)
- Can't Remove About:Blank Page (Viruses, Spyware and other Nasties)
Other Threads in the PHP Forum
- Previous Thread: Features in PHP 5
- Next Thread: PHP Cookbook



Linear Mode