File: form.php
File: form_success.phpCode:<html> <body> <!-- Tutorial Description: PHP Forms --> <form action="form_success.php" method="post"> First Name: <input type="text" name="firstName" /><br> Last Name: <input type="text" name="lastName" /><br> Email: <input type="text" name="email" /><br> <input type="submit" /> </form> </body> </html>
Code:<html> <body> Hello <?php echo $_POST["firstName"]; ?>, your email, <?php echo $_POST["email"]; ?>, has now been added. </body> </html>
Bookmarks