I have this two combobox and on the 1st combobox, if the user selects Volvo,the value that has been selected will be stored on an array that has a variable name $cars, and on the second combobox, if the user select Audi, the value that has been selected will then be stored to $cars. That's what I meant.
Thank you for your prompt reply! :)
Ah, OK, you want to produce an array for dropdowns:
$cars = array($_POST['dd1'], $_POST['dd2']);
However, I would usually sanitize the post inputs before placing them in the array. This requires that you have name="dd1" and name="dd2" as attibutes in the respective select tags.
If you are producing a large number of identical dropdowns, could this be simplified with a list of checkboxes instead? Just a thought.
Since, I cannot attached an image let me create a link. http://img25.imageshack.us/img25/2839/picrb.png
User's is allowed to change the access status via the combo box and it will be process by clicking on the Update Button. And if the status will be changed, it should be put to an array.
Example: Elson's Access is an admin, I want to change it as a Member, The member value will now be stored into an array. Next is I want to change Juan's Access into Admin, the Admin will now again be stored in the array.