I am looking to submit a HTML form file (home.html) with PHP action file (action.php) to display the output on same home.html file after processing through action.php.
I got many scripts solving this problem with .php file, Is it possible to do the same with HTML?
home.html
<form action="action.php" method="post">
Enter Numeric Value: <input type="number" name="num">
<input type="Submit" value="Calculate">
</form>
action.php
<?php
$a=$_POST["num"];
echo "Contact our sales person for higher volume of Emails";
?>
.htmlfiles as PHP. Otherwise, you'd need to use an iframe, or rename your.htmlto.php