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!
Ive had no trouble creating the tables and displaying the unit number beside the edit and remove buttons. Im not sure how to assign a value to each of the buttons as there created. I need to know which unit has been choosen, for my edit/remove page. I was able to do it with a drop down menu using $_POST but in time if the database grows displaying the units in a table would be a nicer approach. Thanks for any help.
Not sure what you are trying to do exactly. But if you are trying to create a table of items that a user has already selected in order for them to edit or remove items then why not make the listed items radio buttons with the unit_id as the value.
I've stared at this for what seems hours (yes I should be in bed, it's 02:37 GMT), but I can't see what the issue is.
From what I can see you are assigning values to buttons (the "hidden" input type, and you don't need 2 of them), I think the issues is how you are handling them on the form action.
I think you need to catch either Submit3 or Submit4 (which would be better named "edit" and "remove") in your "room_editor.php".
Other than that can you post more info, debug data etc?
Ive figured out how to pass the varibles assigned to each button on to the next page. You simply have your button names named $count var each time there built. Next You read each of those names into a array. Then check the value of the array[$x] to see if it isset. Thats it. Thanks For your replies Im glad there people out there that are willing to help.