page.php?page=1,2,3,4,..inf.

Reply

Join Date: Jan 2004
Posts: 152
Reputation: floris has a spectacular aura about floris has a spectacular aura about 
Solved Threads: 2
floris's Avatar
floris floris is offline Offline
vBulletin.com Staff

page.php?page=1,2,3,4,..inf.

 
0
  #1
Jan 21st, 2004
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.
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,027
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 126
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: page.php?page=1,2,3,4,..inf.

 
0
  #2
Jan 21st, 2004
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
Follow my Twitter feed! twitter.com/daniweb
Reply With Quote Quick reply to this message  
Join Date: Jan 2004
Posts: 152
Reputation: floris has a spectacular aura about floris has a spectacular aura about 
Solved Threads: 2
floris's Avatar
floris floris is offline Offline
vBulletin.com Staff

Re: page.php?page=1,2,3,4,..inf.

 
0
  #3
Jan 21st, 2004
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 !
We will put additional code and information in at random, pulled from a function.
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 1,135
Reputation: samaru is just really nice samaru is just really nice samaru is just really nice samaru is just really nice 
Solved Threads: 5
Team Colleague
samaru's Avatar
samaru samaru is offline Offline
a.k.a inscissor

Re: page.php?page=1,2,3,4,..inf.

 
0
  #4
Jan 21st, 2004
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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2003
Posts: 95
Reputation: jayant will become famous soon enough jayant will become famous soon enough 
Solved Threads: 1
jayant's Avatar
jayant jayant is offline Offline
Junior Poster in Training

Re: page.php?page=1,2,3,4,..inf.

 
0
  #5
Jan 22nd, 2004
[php]<?php
header("Location: page.php?page=".($_GET['page']+1));
?>[/php]
Jayant Kumar Gandhi

My exams are over!!! I am back :)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC