PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
i can retrieve the values from the database, but the problem is that the $rightsarr, when writing its value in the database, i get the total number of rows instead of its value. how can i modify this?thanks a lot.
i just want to put the value of the option that i selected. if i have "anoption" in the <option> with the value = 1, i want to retrieve number 1 instead of the sum of all the values. because when i tried to do the above code, and i have 7 options, the value that i get is 7, and not the value of the selected option. hope this helps.
$rightsarr is not in the submission data. It is created by you during the retrieval from the database.
The data will be in $_POST['right'] apparently.
Also, it's rarely a good idea to look for the submit button to tell if a submission has happened. No matter what, each submission value needs to be checked before use. $_SERVER['REQUEST_METHOD'] may be of interest too.