Re: making 2 dropdowns after select refresh



I have already fix the problem! The problem was mod_rewrite.

Greets

"Wouter" <laptop@xxxxxxxxxxx> schreef in bericht
news:43106a4f$0$69741$dbd4d001@xxxxxxxxxxxxxxxxxx
> Hi,
>
> I would like to make a dropdown menu. When a user select something i want
> to use his selection in PHP for a next dropdown menu. When the user has
> selected something in the second dropdown menu i know then what i most
> show for data.
>
> If have make one drop down menu but i dont know how i can use the
> selection in PHP. I think i'm using the wrong javascript. But i dont know
> what i need....
>
> I have the follow code:
>
> <?php
> $db = mysql_connect ($dbhost_hostel, $dbuser_hostel, $dbpasswd_hostel) or
> die ("Verbindeing mislukt");
> mysql_select_db($dbname_hostel, $db);
> $query = "SELECT DISTINCT(land) FROM hostel WHERE validate='1'";
> $res = mysql_query($query);
> $hostel = mysql_fetch_array($res);
> ?>
>
> <SCRIPT type="text/javascript" LANGUAGE="JavaScript">
> <!--
> var d = document;
> d.write("<form name='goLand'>");
> d.write("<select name='goland' size=1 class=input
> onchange='window.location=d.goLand.goland.options[d.goLand.goland.selectedIndex].value'>");
> d.write("<option value='#' selectED>Menu");
> <?php while($hostel = mysql_fetch_array($res)){ ?>
> d.write("<option value='<?php echo $hostel['land'];?>'><?php echo
> $hostel['land'];?>");
> <?php } ?>
> d.write("<\/select>");
> d.write("<\/form>");
> //-->
> </script>
>
> <?php } ?>
>
> For exemple: http://www.backpack.nu/content/verblijf/verblijf/0/ (below)
>
> Can someone help how i can make this ?
> Greets Wouter
>


.



Relevant Pages

  • Re: Pivot Chart Title variable
    ... Tim wrote: ... selection made from the dropdown box. ... I dont know the commands to reference the current Pivotchart's variables therefore i cant pull the information i need. ...
    (microsoft.public.excel.charting)
  • Pivot Chart Title variable
    ... selection made from the dropdown box. ... I dont know the commands to reference ...
    (microsoft.public.excel.charting)
  • making 2 dropdowns after select refresh
    ... I would like to make a dropdown menu. ... use his selection in PHP for a next dropdown menu. ... If have make one drop down menu but i dont know how i can use the selection ...
    (comp.lang.javascript)
  • Re: Calculating off combobox selections
    ... selection from the dropdown combobox list in field A. That's it! ... 'number') in field 'B' based on the selection from the dropdown combobox. ... There is no 'combo box' form field in Word 2003, ...
    (microsoft.public.word.docmanagement)
  • Re: Getting around 25 item dropdown limitation
    ... If you are calling the same userform from an entry macro for each column you ... I ended up with a dropdown for each line of entry.... ... the user makes their selection from the dropdown, each column head ...
    (microsoft.public.word.vba.general)