Forum Moderators: open
<form name=ChangeForm action="script.php" method=POST>
<select name="field_to_change" size=1 onChange=\"ChangeForm.submit();\" >
The JavaScript automatically submits the form when a new option is clicked on and the contents of that option is stored in variable $field_to_change so it can be used in the script like this:
UPDATE table SET $field_to_change = '$the_change' WHERE username='$username' AND password='$password';