
Originally Posted by
sherlyk
PHP Forms
Code:
<html>
<body>
Hello <?php echo $_POST["firstName"]; ?>, your email,
<?php echo $_POST["email"]; ?>, has now been added.
</body>
</html>
You can view the result at :
http://198.27.105.229/example_test004.php
For this to work, you need a HTML form page like
Code:
<html>
<body>
<form action="example_test004.php" method="post">
<div>
Enter your name: <input type="text" name="firstName">
</div>
<div>
Email: <input type="text" name="email">
</div>
<button type="submit">Add Me</button>
</form>
</body>
</html>
Save it as
example_test004.html
Bookmarks