看到PHP输出
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?
dongtanxi5676756
2013/06/20 05:14- php
- html
- 点赞
- 收藏
- 回答
满意答案
4个回复
