On my first page where I have a list box with years in it. when submitted it sends the years over on the url. But when I try to send it to page 3 it prints out as ARRAY. How can I send the array from page 2 to page 3?
PAGE 1
<th><div align="center">
<select name="cboyear[]" size="6" multiple class="listbox">
<?php
/
Create your SQL statement
/
$sql="SELECT yr_id, year from tbl_year;";
$result_set = pg_Exec ($conn, $sql);
$rows = pg_NumRows($result_set);
if ((!$result_set) || ($rows < 1)) {
//No connection or no rows returned, so print an error
echo "<H1>ERROR - no rows returned</H1><P>";
exit; //exit the script
}
for ($j=0; $j < $rows; $j++) {
echo "<option value=".pg_result($result_set, $j, "yr_id")."> ".pg_result($result_set, $j, "year")."</option>";
}
?>
</select></th>
</tr>
<tr>
<th colspan="2" scope="row"> </th>
<td> </td>
<tr>
<th colspan="4" scope="row"><input name="Submit" type="submit" value="Submit"></th>
</table>
PAGE 2
<input type="hidden" value="<?php echo $_GET['cboyear']?>" name="cboyear" >
<input type="submit" value="Submit" name="submit">