$PHP_SELF should be $_SERVER['PHP_SELF'], unless you manually set $PHP_SELF your...self.
How are you verifying that it's not working? Maybe it's the code in the other functions?
EDIT: Also, for your HTML, you should switch the opening <div> tag and the opening <form> tag.
Actually, it looks to me like he just has an extra closing tag for the div. He's got 2 closing and only one opening. He should take out the first closing tag on line 23.
Right, but if he takes out the closing tag on 23, he has <div><form></form></div> which is OK
If you look, I have 3 submit buttons. None of them do anything. The tut i followed on using more than 1 submit button said to check if their name is posted... basically I'm trying to have it tell me which button is being pressed, then preform the function specified. but it doesn't do anything but reload without adding anything to the database...
the 'extra' closes one not shown. it is my wrapper class... I wasn't worried about validating my code right now. Especally because IE doesn't like 'perfect' pages.
Nah, what you want to do is use an OnClick function, and use JavaScript to change a hidden field to denote which button was clicked. So your OnCLick for each button will change that hidden field and then submit the form.
... I hate Java... :P I really should learn it... What exactly would I have to do? Javawise that is. Hidden textboxes are easy...
I'm still curious, though, because the way he did it should have worked (regardless of whether or not it was ideal). Try replacing those function calls with echo/print statements, just to verify that this works. I think the problem was in your actual functions (add_item(), remove_item(), and update_item()), not the code you've posted here.
No, they function perfectly. calling the functions without the form works fine.
It should work. However I've just noticed that you never set the name attribute of itemId, itemType, itemName, or itemIcon, you've just set the id attribute. You need to set the name tag if you want those values to actually be passed in.
I missed it at first too; I think I was looking for an error in the PHP and that's why I missed it.