Jump to content

form and post method help


barnes

Recommended Posts

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>

Link to comment
https://forums.phpfreaks.com/topic/47715-form-and-post-method-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.