Populate DB from drop down menu

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Stelios
Forum Commoner
Posts: 71
Joined: Fri Feb 06, 2004 6:25 am
Location: Surrey/UK

Populate DB from drop down menu

Post by Stelios »

Hi there,

I want to populate my DB with values from a drop-down menu which is situated in a form. Am trying the simple way but is not working. Any ideas how this may happen?

Code: Select all

<tr>
      <td><strong>Tempo<i>(Bits/Min)</i></strong></td>
	  <td colspan="2"><select name="bpm">
          <option value="1">80-</option>
          <option value="2">80 - 90</option>
          <option value="3">90 - 100</option>
          <option value="4">100 - 110</option>
          <option value="5">110 - 120</option>
          <option value="6">120 - 130</option>
          <option value="7">130 - 140</option>
          <option value="8">140 - 150</option>
          <option value="9">150 - 160 </option>
          <option value="10">160+</option>
        </select></td>
  </tr>
djot
Forum Contributor
Posts: 313
Joined: Wed Jan 14, 2004 10:21 am
Location: planet earth
Contact:

Post by djot »

-
Again, tell precisly what you want or where your problem is. The select box code works for sure, so where is your db code and your problem?

djot
-
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

search.php

keywords: "database down menu"

will give you the answer.
User avatar
Stelios
Forum Commoner
Posts: 71
Joined: Fri Feb 06, 2004 6:25 am
Location: Surrey/UK

Post by Stelios »

Am sorry...my mistake.... :oops:
Post Reply