Jump to content

dropdown menu


shihao

Recommended Posts

My code is roughly like this:

 

The drop down menu take the data from database:

  <select name="mycustomer" onchange="transaction_ddl()">

  <?php

while ($row=mysql_fetch_array($result)){?>   

  <option value="<?echo $row['customer'];?>" <?if ($mycustomer==$row['customer']) echo "selected";?>><?echo $row['customer']?></option>

    <?}?>

  </select>

 

I don't know how to write the textarea part which also need to take from database.

  <td><TEXTAREA name="address" COLS=40 ROWS=6 value="<?echo $row['address'];?>"></TEXTAREA>

Link to comment
https://forums.phpfreaks.com/topic/178317-dropdown-menu/#findComment-940251
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.