The action attribute of the form tag directs the browser to where you want to send your form data. To direct the browser to a PHP script, just change the action attribute in your code to the PHP script you’d like to send your data to.
<form action="my_php_file.php">
solved Using HTML forms with a PHP script [closed]