0
As you are creating a half-complete project...
I made a FORM with the <.OPTION.> and <.input option..>
what I want is... to make a Loope where in this option it takes with it as POST the ID, NAME, EMAIL all of a single 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 that?... I’m lost.
I tried it like this, but he just showed it all just 1 detail on Row and the rest off 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 take all the ROW Values and take along with the chosen OPTION and prepare the POST and add everything... as I do?
Could show sql query before while?
– Victor Eyer
Why do you finish the </select> inside the while without starting it inside that loop?
– Renato Junior
The point is not... the point is I want to use All Name Details 1 in just 1 OPTION.... And not just 1 value per each...
– Mitchell
Wow, it’s hard to understand. put the whole code in please.
– Márcio Rossato
Fuck, I want this <option value="'$Row['id'] . $Row['movie_name'] . $Row['movie_img']'">'$Row['movie_name']'</option>, so that later ADD to another table all these data.
– Mitchell