From HTML form you can specify action attribute to point to a separate PHP file. However, I'm not sure what you mean by passing an execution to another script. You can use require/require_once or include/include_once to execute a PHP code located in a separate file.