HighDots Forums  

jumpmenu

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss jumpmenu in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
kavoka
 
Posts: n/a

Default jumpmenu - 11-09-2005 , 08:38 AM






Hi,

I have a jump menu being populated dynamicly with a * query and the code
below is what i use on the jumpmenu.

<select name="menu1" onchange="MM_jumpMenu('parent',this,0)">
<?php
do {
?>
<option value="phonedetails.php?Id=<?php echo
$row_Recordset1['Id']?>"><?php echo $row_Recordset1['model']?></option>
<?php
} while ($row_Recordset1 = mysql_fetch_assoc($Recordset1));
$rows = mysql_num_rows($Recordset1);
if($rows > 0) {
mysql_data_seek($Recordset1, 0);
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
}
?>
</select>
</form>


this works fine and goes to phonedetails.php and displays that models details.

im trying to get this to happen all on the same page and the jump menu to
show the current phone model thats on the page selected.

instead of going back and forth to select different models.

hope someone can can help......or point me in the right direction.

thanks



Reply With Quote
  #2  
Old   
finalwebsites.com
 
Posts: n/a

Default Re: jumpmenu - 11-09-2005 , 10:18 AM






You have to change the value to $PHP_SELF, (or the current file name)

But don't forget that your solution works only with javascript enabled
web browsers and without real links a search engine spider will stop
here.


--

gr. Olaf
PHP classes and scripts: http://www.finalwebsites.com


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.