RE: [PHP-DB] Next
| From: | Rick Emery | Date: | Wed, 14 Nov 2001 13:31:46 +0000 |
| Subject: | RE: [PHP-DB] Next | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-14321@lists.php.net to get a copy of this message | ||
Pass the current question number in a parameter to the next page in the URL.
In the following, the PHP variable would track your current page:
print "<A href=\"myform.php3?page=$page\">Next</A>";
-----------------------------
then, in myform.php3:
<?php
$page++;
....display the question for this page....
?>
-----Original Message-----
From: Peter Allum [mailto:develop@connectu.co.uk]
Sent: Wednesday, November 14, 2001 3:38 AM
To: php-db@lists.php.net
Subject: [PHP-DB] Next
I am writing a questionaire, am gonna include java timer etc... and it is
written in PHP 4 and Mysql running on Apache.
I have my questionaire database full of questions I randomly select say 40
questions. But rather than display the whole array on the screen I would
like to have 1 question per page and a next button. I hope that makes sense
any ideas anyone?
Many thanks for you halp in advance.
Peter
--
Regards,
Peter Allum
Connect U Ltd
****************************************************************************
**************
Confidentiality: This email and its attachments are intended for the above
name only and may be confidential. If they have come to you in error you
must take no action based upon them, nor must you copy or show them to
anyone.
Please reply to this email and highlight the error.
Security Warning: Please note that this email has been created in the
knowledge that Internet email is not a 100% secure medium.
We advise that you understand and observe this lack of security when
emailing us.
Viruses: Although we have taken steps to ensure that this email and
attachments are free from any virus, we advise that in keeping with good
computing practice the recipient should ensure they are actually virus free.
webmaster@connectu.co.uk
****************************************************************************
**************
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
For additional commands, e-mail: php-db-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net