Poppulating DropdownMenu with an array in php

starplatinum

New Member
can someone tell me how to populate a dropdown menu with the elements in the array and when someone choses a certain album like say Closing time after submitting the form it will replie with the 2th element of the array "in voorraad" i ahve ben trying to search for it i cant find anywhere thank you in advanceArray in php form\[code\]$album["Closing time"]="in voorraad";$album["Rumba Azul"]="uit voorraad"; $album["Survivor"]="in voorraad"; $album["Greatest Hits Queen"]="uit voorraad";$album["3121 Prince"]="in voorraad";\[/code\]the html part i dont know how to querry the array in\[code\]<form action="Albert_verwerken.php" method="post"><table border=1 cellspacing=0 cellpading=0> <tr> <td>Achgternaam:</td> <td><input type="text" name="achternaam"></td></tr> <tr> <td>Voornaam:</td> <td><input type="text" name="voornaam"></td></tr><tr> <td>Adres:</td> <td><input type="text" name="adres"></td></tr><tr> <td>Postcode:</td> <td><input type="text" name="postcode"></td></tr><tr> <td>Plaats:</td> <td><select name="plaats"><option value="">Kies...</option><option value="http://stackoverflow.com/questions/14582479/amsterdam">Amsterdam</option><option value="http://stackoverflow.com/questions/14582479/rotterdam">Rotterdam</option></select></td></tr>\[/code\]
 
Back
Top