Results 1 to 2 of 2

Thread: dropdown menu populated by mysql

  1. #1
    Join Date
    Feb 2010
    Location
    Falkirk, Scotland
    Posts
    142
    Thanks
    21
    Thanked 4 Times in 4 Posts

    Question dropdown menu populated by mysql

    hi, i am currently working on a private messaging system for my site. right now i have text input for the 'reciever' field:
    Code:
    <tr>
                    <td width="150px" align="left" valign="top"><p>Username</p></td>
                    <td width="" align="left" valign="top"><input name="username" type="text" id="username" value="<?php echo "$reciever"; ?>"></td>
                  </tr>
    i am trying to change this to a dropdown menu which will allow the user to select 'reciever' from a list in the dropdown, but im having trouble populating it.
    this is how it looks just now:
    Code:
    <SELECT NAME="username" value="<?php echo "$reciever"; ?>">
                  <OPTION VALUE=0>Choose
                  <? echo $rows['username']?>
                  </SELECT>
    any ideas? all help appreciated!
    Last edited by liamallan; 03-19-2010 at 08:26 PM.

  2. #2
    Join Date
    Feb 2010
    Location
    Falkirk, Scotland
    Posts
    142
    Thanks
    21
    Thanked 4 Times in 4 Posts

    Default

    never mind, figured it out.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •