Page 1 of 1

i am not form values to php file

Posted: Thu Apr 19, 2007 4:26 am
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>

Posted: Thu Apr 19, 2007 4:41 am
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 ?