Karen, I'm assuming that when you say: > For some reason, > when Previous/Next are clicked, the value passed is still 15 > even though the pulldown says something else (5 or 15 or > whatever) you're drawing that conclusion because 15 images (or whatever) are displayed on the resulting page regardless of what you select in the pulldown. Does the actual URL say 15 or does it say something else (e.g. 20)? If the URL shows that pagesize=15, but the resulting page displays 20 images, it's possible the problem is that you're not checking the actual value passed in the URL. Your current code: If(!$pagesize) { $pagesize=15; } Should read: If(!$_GET["pagesize"]){ $pagesize=15; } Else{ $pagesize = $_GET["pagesize"]; } This is assuming that you have register globals turned off (I think that's right). Because, otherwise, each time the page loads with your current code, $pagesize would never be set and would always default to 15. Hope this helps. Rich > -----Original Message----- > From: Karen Resplendo [mailto:karenresplendo@xxxxxxxxx] > Sent: Thursday, March 11, 2004 2:11 PM > To: php-db@xxxxxxxxxxxxx > Subject: Pulldown value not passed to next page > > > What is wrong with this picture? I build a pulldown for > selecting page size(number of rows in one page). If page is > new, it gives the default (selected) of 15. For some reason, > when Previous/Next are clicked, the value passed is still 15 > even though the pulldown says something else (5 or 15 or > whatever). Down below my pulldown code is the code to call > the Next/Previous pages (just the important part)> > > ****************************************** > Pulldown built here > ****************************************** > //use rcan select page size from a pulldown > $myArray = array('5','10','15','20','25','30','35', '40'); > $numElements = count($myArray); > If(!$pagesize) > { > $pagesize=15; > } > echo "<SELECT SIZE=1 NAME='pagesize'>"; > /*loop through filling pulldown*/ > for($i=0;$i<=$numElements;$i++){ > echo "<OPTION VALUE=".$myArray[$i]; > > If($myArray[$i]==$pagesize) > { > echo " SELECTED>".$myArray[$i]."\n"; > } > Else > { > echo ">".$myArray[$i]."\n"; > } > } > echo "</SELECT><br><br>"; > > **************************************** > link when Next/Previous clicked > *************************************** > > else // not the last page, link to the next page > echo "<a > href=\"chemlatestPAGETEST.php3?pwsno=".$pwsno."&pagenum=" . > ($pagenum + 1)."&pagesize=".$pagesize. "\">Next</a>"; > > > --------------------------------- > Do you Yahoo!? > Yahoo! Search - Find what you're looking for faster. > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php