I am trying to get the value selected by the user in a option
days ago and there is no way I am not able to use two tables a contact call and another situation, in the situation I have the values waiting, progress and completed.
I do a search in this table with fecth_array
until then, but when I select one of the options I'm not sure how to write and send the variable to the contact table. I ask your help because I am already in this dilemma a few days
Note: when I click on the change button it is not sending the variable that the user selected, but the last item in the array that is finished so even though I choose progress this is leading to the completed variable.
echo'<td><select name="sitprot" id="sitprot">';
$sql="select * from situacao"; // neste permite mostrar e alterar e as opções para ser gravado no banco.
$resultado2=mysql_query($sql);
while($dados1=mysql_fetch_array($resultado2)){
$marca1=$dados1['situ'];
echo "<option value='$marca1'>$marca1</option>";
echo $marca1;
}
echo '</select> <td>';
echo '<td><a href="status1.php?id='.$info[id].'& situ='.$marca1.'">Alterar</td>';