Register|Login

Have a question? Click here to ask the community.

Tutorial 20 – Forms

| In: 20. Forms | 11,462 views

Video Tutorial

Part 1


Video Source Code

File: form.php

1
2
3
4
5
6
7
8
9
10
11
12
13
<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>

File: form_success.php

1
2
3
4
5
6
7
8
<html>
<body>
 
Hello <?php echo $_POST["firstName"]; ?>, your email,
<?php echo $_POST["email"]; ?>, has now been added.
 
</body>
</html>

Comment Form

You must be logged in to post a comment.