phptutorials

PHP Script to get input values from a HTML form!

In this post we are going to see a very basic PHP script which might be useful for beginners who wants to learn PHP language.

Let’s create a simple HTML form (index.html):

I have used Bootstrap CSS to make the form look neat.

If you see the above code in the <form> tag action=”formvalues.php” file is not yet created. This is the php file which is going to capture our form values and print it.

Let’s write the PHP code (formvalues.php):

You can see the demo here:

demo

Related Posts

Leave a Reply