i have 3 drop down which the user can only select one each has they own name like select 1 select 2 and select 3 but i want whichever the user select to go into the same field on the database.. at the moment i named the field select3 but that only store value of the drop down named SELECt3 how do i get if user chose select2 insert the value on same field as if chose select 1 or 3
i tried
$select3 = $_POST['select1 || select2 || select3'];
$query="INSERT INTO photos values ('$select3')";
$select3 = $_POST['select1 && select2 && select3'];
$query="INSERT INTO photos values ('$select3')";
<select id="in-campu" name="select1">
<option name="hot" value="default">--Select Music Type--</option>
<option name="how" value="Concerts">Concerts</option>
<option name="hot" value="Clubs" >Clubs</option>
<option name="hot" value="Festival">Festival</option>
<option name="hot" value="Opera">Opera</option>
</select>
<select id="off-campus" class="item" name="select2" style="display: none;">
<option name="hot" value="default"> -- Select Sport Type -- </option>
<option name="hot" value="Formula 1">Formula 1</option>
<option name="hot" value="Footbal">Footbal</option>
<option name="hot" value="Basketball">Basketball</option>
<option name="hot" value="Rugby">Rugby</option>
<option name="hot" value="Cricket">Cricket</option>
</select>
<select id="one" class="item" name="select3" style="display: none;">
<option name="one" value="default"> -- Select Art & Theatre Type -- </option>
<option name="one" value="Comedy">Comedy</option>
<option name="one" value=" Drama">Drama</option>
<option name="one" value="Museus">Museus</option>
</select>