Since I'm creating a half-full project ...
I made a FORM where you have the < .OPTION. > and < .input. >
What I want is ... do a Loope where in that option it takes with it as POST the ID, NAME, EMAIL all of a so rows example.
nome | email| id
1 | @1 | 1
2 | @2 | 2
3 | @3 | 3
Se escolher esta <option>1</option>, ele posta tudo da row 1.
How do I do this? ... I'm lost.
I tried it like this, but it simply showed everything just 1 details in the row and the rest outside the row.
while($row = mysqli_fetch_array($result2))
{
echo "<option value = '".$row['id']."'>".$row['movie_name']."</option>";
echo "</select>";
echo "<input type='hidden' value='".$row['movie_name']."' name='movname' hidden>";
echo "<input type='hidden' value='".$row['movie_img']."' name='movimg' hidden>";
}
Simply grab all the ROW Values and bring along the chosen OPTION and prepare the POST and add everything ... how do I?