Um, Aaron, in the code you posted, you didn't have any variable declarations. Not a single one. That seems like a good place to start. However, if you're having trouble with multiple submit buttons, try giving the different submit buttons different names (submit1, submit2, etc.) and then testing that variable, e.g. if($submit1) { ... }