Okay, first off, very very new at this.
What I am doing at http://www.bunnyspatial.com/review.php is populating the list box on the upper left from my database. Right now there are just two entries for me to test it all out.
Right now review.php populates itself by the id field of my table, so http://www.bunnyspatial.com/review.php?ID=2 would bring up the review page for id2.
I need to make it so when something in the list box is selected, when you click the button it takes you to review.php?ID=(ID).
Right now it takes me to http://www.bunnyspatial.com/review.php?select=2&x=62&y=9 , which is nonsense to the review page.
I hope this make sense to someone. This is the one stumbling block towards finishing my page. If someone can help, I would greatly appreciate it, even if just to point me to where I can find the answer!
Here is my form code, and please try not to laugh. I am very new at this!
<form>
<select name="select" size="8" style="width:200">
<?php
do {
?>
<option value="<?php echo $row_Recordset2['ID']?>"<?php if (!(strcmp($row_Recordset2['ID'], $row_Recordset1['ID']))) {echo "SELECTED";} ?>><?php echo $row_Recordset2['Name']?></option>
<?php
} while ($row_Recordset2 = mysql_fetch_assoc($Recordset2));
$rows = mysql_num_rows($Recordset2);
if($rows > 0) {
mysql_data_seek($Recordset2, 0);
$row_Recordset2 = mysql_fetch_assoc($Recordset2);
}
?>
</select>
</p>
<p align="center"><INPUT TYPE="IMAGE" src="images/choosereviewbut.gif" width="178" height="13" onClick="parent.location='review.php'" ALT="Submit button"> </p></form>
Thanks!