I am trying to figure out the same thing and this is pretty much all going over my head
I am able to retrieve a value from MySQL. Lets call it "$idToChange"
My question is how to I pass $idToChange to page2.php
I can pass the "newWeight" value fine because I manually enter it but the $idToChange is data fetch from the database and user should not have to manually type it in.
<form method='post' action='page2.php'>
Enter new weight: <input type="text" name="newWeight" />
<input type="hidden" name="idToChange" value="$idToChange" />
<input type='submit' onclick='page2.php'>
</form>
I have tried many variations and getting no where