CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
pagination

 



jumaru
Deleted

Mar 3, 2000, 10:26 AM

Post #1 of 3 (600 views)
pagination Can't Post

How can make pagination in my search script or guestbook...
If I want to make 10 results per page how can be done ?


jumaru
Deleted

Mar 3, 2000, 1:48 AM

Post #2 of 3 (600 views)
Re: pagination [In reply to] Can't Post

Thanks but I didn't know how to use and where to put it


darian
Deleted

Mar 3, 2000, 10:37 AM

Post #3 of 3 (600 views)
Re: pagination [In reply to] Can't Post

Here is something I used in a POP3 email program I wrote.

if ($lastMsg == "") { $lastMsg = $MessageCount };

for ($i=$lastMsg; $i >= 1 && $i> $lastMsg-10; $i--) {

#print what you need

}
print qq~
<form action=myscript.pl method=post>
<input type=hidden name=lastMsg value=$lastMsg>
<input type=submit value="Next 10">
</form>
~;

Not exactly my best code but you get the idea. I hope you do anyway.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives