It depends on what you need the form to do. If it is entering data into a database from the form, you could use an if statement at the top of your page.
if($Submit == "Click here to submit")
{
}
else
{
}
This will recognize that the Submit button has been pressed and execute the code.