[thelist] Multiple Pages With PHP - with array?

Jackson Yee jyee at vt.edu
Sun Feb 9 01:36:01 CST 2003


"mp mac donald" <mpmacdonald at eastlink.ca> wrote in message
news:HHEILOJIOFJNFJLCPAJJKEBPCBAA.mpmacdonald at eastlink.ca...
> I recently used jesteruk's well-written tutorial - Multiple Pages With
PHP -
> at evolt.org to create the results display from a search form that
contains
> arrays.  The arrays are passed to the results page for a SELECT * FROM
table
> WHERE theformsarray IN ('" . implode("','", $_POST['theformsarray']).
This
> works great on page 1 of x - but as soon as you go to the next pages the
> variable is not passed as part of the $query.

Do you mean that you want to progress the form data to latter pages?  If you
do, you'll need to write the array into a form and use a submit button to
take your user to the next page, such as:

<form action="nextpage.php" method="post">
<?php
  echo '<input type="hidden" name="theformsarray" value="',
$_POST['theformsarray'], '" />';
?>
<input type="submit" name="blah" value="Next Page" />
</form>

--
Regards,
Jackson Yee
jyee at vt.edu





More information about the thelist mailing list