Forums

This topic is locked

listbox go to detail page

Posted 30 Apr 2003 16:56:28
1
has voted
30 Apr 2003 16:56:28 Adam Davies posted:
Hi can anyone tell me how I can have a dynamic listbox and when clicked it takes the page_id and passes it over to the detail page.

I have the listbox populated with page_id as the value and page_name as the label.

listbox looks like this.
<select name="page_id" id="page_id" onchange="submit();">
<option value="choose one">choose one</option>
<?php
do {
?>
<option value="<?php echo $row_RSpage['page_id']?>"><?php echo $row_RSpage['page_name']?></option>
<?php
} while ($row_RSpage = mysql_fetch_assoc($RSpage));
$rows = mysql_num_rows($RSpage);
if($rows > 0) {
mysql_data_seek($RSpage, 0);
$row_RSpage = mysql_fetch_assoc($RSpage);
}
?>
</select>
using DMX 6.1 , php and mysql database (if it helps)



Edited by - cotc2001 on 30 Apr 2003 16:57:51

Replies

Replied 01 May 2003 10:04:14
01 May 2003 10:04:14 Adam Davies replied:
Can anyone answer this for me???? please.

Replied 01 May 2003 14:20:43
01 May 2003 14:20:43 Julio Taylor replied:
set your for method to GET

------------------------
Julio

PHP | MySQL | DWMX

ICQ: 19735247
MSN:

Reply to this topic