Your First Site : Part 2

Hi There Pretty Brain ...

Please note that this tutorial is part of the Build Your Own Site series of tutorials. Feel free to restart the series.

In this tutorial we'll continue where we left off in the first part of this lesson. We created an html page in part 1 with a form. The form had two inputs , both of which were text input fields. The code looked like this:

<!DOCTYPE HTML>
<html>
<head>
<title>The First Site | Yeaaahhh Boooiiiiiyy!!</title>
</head>

<body>
    <form action="/action_page.php" method="get">
      First name: <input type="text" name="fname"><br>
      Last name: <input type="text" name="lname"><br>
      <input type="submit" value="Submit">
    </form>
</body>

</html>

Remember this bad boy? - "Alright, alright, alright ..." - Denzel Washington

Buckle up soldier, it's about to get all kinds of fun all up in here!!!

Insert this code in the "action_page.php" file:

<?php
   echo "we're in here fool!!";

?>

Yeaahh Booiiyy!! - now reload the "http://localhost/first_site.html" page , fill out the form, submit and voila!! ... The server will load you "action_page.php" page into the browser. Neat right ...

"Alright, alright, alright ..." - Matthew McConaughey

"In this part of the lesson, we'll be building the page to which the form will be submitting to"

The Village Geek

Don't worry about it Phillip, we'll now start an in depth introduction to php, what it is, and most importantly - how to use it. "Alright, alright, alright ..." - Matthew McConaughey


Cape Town, South Africa

Comments  (0)

POST A COMMENT
7218 views

Reply to this discussion

You cannot make comments, please login:

Login or Register

Login
Register
Coming Soon ...