Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

> Multiple Drop Down Menu PHP, need help

views
     
TSPeach88
post Apr 9 2010, 08:58 AM, updated 11y ago

New Member
*
Junior Member
29 posts

Joined: Jan 2010
From: backstabbing world


Hi, does anyone know how to create a multiple down down menu using php? for example, in job location, user gets to choose 3 different job location from 3 different drop down menu, and send these information to the database. i've tried to search thru tutorials but dun really understand the coding @[email protected]

anyway in the database, should i put all 3 information in a single field?
TSPeach88
post Apr 9 2010, 11:39 AM

New Member
*
Junior Member
29 posts

Joined: Jan 2010
From: backstabbing world


QUOTE(hiroshimaru @ Apr 9 2010, 09:19 AM)
u mean something like this?

CODE

<?php
echo "Select Processor Type 1 : ";
echo "<select name=processor>";
echo "<option value=\"AMD\">AMD</a></option>";
echo "<option value=\"INTEL\">INTEL</a></option>";
echo "<option value=\"OTHER\">OTHER</a></option>";
echo "</select><br>";
echo "Select Processor Type 2 : ";
echo "<select name=processor2>";
echo "<option value=\"AMD2\">AM2D</a></option>";
echo "<option value=\"INTEL2\">INTEL2</a></option>";
echo "<option value=\"OTHER2\">OTHER2</a></option>";
echo "</select><br>";
echo "Select Processor Type 3 : ";
echo "<select name=processor3>";
echo "<option value=\"AMD\">AMD3</a></option>";
echo "<option value=\"INTEL\">INTEL3</a></option>";
echo "<option value=\"OTHER\">OTHER3</a></option>";
echo "</select>";
?>

*
yes, this is the multiple drop down menu, but this is the html form. need the PHP function to make it work >.<''

 

Change to:
| Lo-Fi Version
0.0168sec    0.38    6 queries    GZIP Disabled
Time is now: 2nd March 2021 - 12:38 AM