Jump to content

List menu actions in dreamweaver. How?


cnl83

Recommended Posts

Im using dreamweaver, and I have a simple list menu that is linked to a dynamic source in my database. I cannot figure out how to create an action when they select something from the list menu. I suppose that it would have to be passed through the browser somehow. Im not very code fluent, but I try. If you know to accomplish this using dreamweaver cs4 or hard coding, I would appreciate it.

 

I want this: When you click on an item it will bring up all the data pertaining to that particular record.

 

My code:

      
<form id="form1" name="form1" method="post" action="">
        <label for="customerlist">Select your customers</label>
        <p><label for="customers"></label>
    <select name="customers" id="customers">
            <option value="None">None</option>
            <?php
do {  
?>
            <option value="<?php echo $row_Customers['name']?>"><?php echo $row_Customers['name']?></option>
            <?php
} while ($row_Customers = mysql_fetch_assoc($Customers));
  $rows = mysql_num_rows($Customers);
  if($rows > 0) {
      mysql_data_seek($Customers, 0);
  $row_Customers = mysql_fetch_assoc($Customers);
  }
?>
          </select>
          <input type="submit" name="Go" id="Go" value="Go" />

Link to comment
https://forums.phpfreaks.com/topic/229454-list-menu-actions-in-dreamweaver-how/
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.