I have the following PHP code:
echo "<form name='CLChange' method='post' action=''>";
echo "<td><select name='NewClearanceLevel'>\n";
for($i = 1; $i < $ClearanceLevel; $i++)
{
echo "<option value='" . $i . "'>" . $i . "\n";
}
echo"<input type='submit' value='Change'></td></form>";
I want to be able to pass on an other value representing the current table row (This creates a table with which I should be able to make changes to an individual user). It has a row for every user. It looks roughly like this:
User ID Clearance Level New Clearance Level
User 1 1 4 (Drop down list and submit button)
User 2 2 3 (Drop down list and submit button)
User 3 3 1 (Drop down list and submit button)
Each drop down list and button is an individual form.
How can I do it so that I can pass an additional value as to know which user I am talking about? Or is there any other way to know which is the name of the form passed?
Try this: