Jump to content

girish1

New Members
  • Posts

    3
  • Joined

  • Last visited

girish1's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. <?php include_once "configdb.php"; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <select name="category" id="category"> <option value="">Select Category</option> <?php $query = "SELECT * FROM category"; $result = $conn->query($query); if ($result->num_rows > 0) { while ($row = $result->fetch_assoc()) { echo "<option value='{$row["cat_id"]}'>{$row['cat_name']}</option>"; } }else{ echo "<option value=''>Category not available</option>"; } ?> </select><br><br> </body> </html> How do I capture the selected value and post that value to another table.
  2. sorry, i should have been more specific. script language is php. this is not about dependent dropdowns. will send you images and code. thank you.
  3. I am a beginner. How do you capture the selected value in dynamic dropdown and submit it to a different table in mysql
×
×
  • 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.