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:

<title>The First Site | Yeaaahhh Boooiiiiiyy!!</title>

    <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">


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:

   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

Buy me a coffee ? :) Buy me a coffee :)

Reply to this discussion


Coming Soon ...