i am not form values to php file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
barnes529
Forum Newbie
Posts: 17
Joined: Thu Apr 19, 2007 4:18 am

i am not form values to php file

Post by barnes529 »

Hi to all,
i wrote form.html as below and when i submitting my form open a dialog box and asking for opening welcome.php.if click on ok.open welcome.php in notepad.i didn't get output from welcome.php

<html>
<body>

<form action="welcome.php" method="post">
Name: <input type="text" name="name" />
Age: <input type="text" name="age" />
<input type="submit" />
</form>

</body>
</html>

welcome.php

<html>
<body>

Welcome <?php echo $_POST["name"]; ?>.<br />
You are <?php echo $_POST["age"]; ?> years old.

</body>
</html>
User avatar
bert4
Forum Newbie
Posts: 18
Joined: Wed Apr 18, 2007 9:44 am
Location: Bali, Indonesia

Post by bert4 »

Its because you use a web server that hasn't installed PHP (correctly) .....

Is it a hosted server, or a server you have installed on you own pc ?
Post Reply