| | |
page.php?page=1,2,3,4,..inf.
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
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:
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
!
! •
•
•
•
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:
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?
Check out my blog at http://www.shinylight.com for more stuff about web dev.
![]() |
Similar Threads
- How do I output information from a PHP page to an HTML page? (PHP)
- is java page session_id and php page session_id is equal (PHP)
- pass the javascript variable to php page (PHP)
- updating 2 HTML tables on one PHP page (PHP)
Other Threads in the PHP Forum
- Previous Thread: Features in PHP 5
- Next Thread: PHP Cookbook
| Thread Tools | Search this Thread |
advanced ajax apache api array basics beginner broken cakephp class cms code codingproblem combobox cron curl database date datepart display dropdownlist dynamic email eregi error execution file files folder form forms function functions google head href htaccess html if...loop image include includingmysecondfileinthechain interactive ip javascript job joomla jquery js key library limit link login menu mlm multiple mysql nodes oop outofmemmory paging password paypal pdf pdfdownload php phpvotingscript problem procedure query ram random screen script search server sessions smarty source space sql stored syntax system table traffic tutorial unicode up-to-date upload url validation variable video web webapplications websitecontactform youtube zend







