I have this simple HTML form. and A php script in my computer,
<html>
<body>
<form action="file:///home/tamim/welcome.php" method="post">
Name: <input type="text" name="fname">
Age: <input type="text" name="age">
<input type="submit">
</form>
</body>
</html>
And my welcome.php is
<html>
<body>
Welcome <?php echo $_POST["fname"]; ?>!<br>
You are <?php echo $_POST["age"]; ?> years old.
</body>
</html>
but when I submit., firefox gives me a prompt of what should it do with the welcome.php file? How do I run the php file on submit and see the output in commandline or browser or somewhere else?