Okay I'll try to explain this, What I want to do is to have a script/function that will get the name of the input button that is push. Here is what i want to do... if there is an easier way then PLEASE let me know... if (!isset($_POST[[!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]button_name[!--colorc--][/span][!--/colorc--]])){ $mode = "empty"; } switch($_POST[[!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]button_name[!--colorc--][/span][!--/colorc--]]) { case 'index': echo "Sorry, you didnt select a item to process"; break; case 'register': // This would process the signup part... break; } Now a little more, The parts in red I would like it to get automaticly, so what it will do is just jump straight to where it is ment to start processing information. Saving me from typing; if($_POST['blah']) { blah } elseif ($_POST['blahblah']) { blah blah } Please ask me to explain better if you cannot understand it, I am pretty tired hacking away at this for a while and havnt got very far.