
japhy
Enthusiast
Feb 10, 2000, 4:02 AM
Post #2 of 3
(336 views)
|
|
Re: Getting the next set up messages
[In reply to]
|
Can't Post
|
|
What you want to do is, after you've shown 10 messages (or whatever), the "Next 10" link (or button) should send the program a parameter saying where it left off: <BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR> use CGI; $q = new CGI; $last = $q->param('last_msg') | | $num_of_msgs; print << "END"; Content-type: text/html <html> <body> END for ($i = $last; $i && $i > $last - 10; $i--) { print $messages[$i]; } $last--; print << "END"; <a href="thisprogram.cgi?last=$last">Next 10</a> </body> </html> END </pre><HR></BLOCKQUOTE> [This message has been edited by japhy (edited 02-10-2000).]
|