Poplate html drop down box

Posted by csU on Stack Overflow See other posts from Stack Overflow or by csU
Published on 2010-03-28T18:35:07Z Indexed on 2010/03/28 18:43 UTC
Read the original article Hit count: 197

Filed under:
|
|

how do you populate a drop down html box within a form, but populate it with values from a php array

for example

<form name="mname" action="index.php" method="post">
<select name='values'>
<option> </option>
<option> </option>
</form>

i can do it by echoing it out, thus not needing the form, but i really need to get at the value i am echoing in the drop down box later, so was hoping someone could show me how it can be done like this, using php

© Stack Overflow or respective owner

Related posts about html

Related posts about php