I have a form where when the user clicks submit, I need a php file to be ran. below is the form and the php file.
You missed to name the submit button. So no entry in the $_POST/$_REQUEST array is given. Depending on the php settings you might want to use array_key_exists() to check for an index in the array as isset might throws an error.