php form processing help

Discussion in 'PHP' started by barnes, Apr 18, 2007.

  1. #1
    Hi to all,
    i wrote form.html as below and i am calling welcome.php through action.and iam using method=post.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>



    <html>
    <body>

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

    </body>
    </html>
     
    barnes, Apr 18, 2007 IP