hello

Monday, October 6, 2014

2.4 $_REQUEST

The CODE














- Just like in the previously tutorial, we used the $_REQUEST global variable in retrieving / catching data. But the difference is you dont need to change the method of the form. Generally, it will acts depends on what method of the form you declared. Just like when the method of the form is GET is will handle the data just like the $_GET same as well in the $_POST variable.

2.3 $_POST

The Code















- Ok guys, this is the code inside of controller.php using the global variabe $_POST. Just like the previous $_GET tutorial. We used the $_POST variable in order for us to retrieved/catch data of the form having POST. Now lets observe the output.

Sunday, October 5, 2014

2.2 $_GET

The Code (Controller.php)














- This is the code inside our controller.php.     As you notice, we used the $_GET variable to catch the data of the form having GET method. This is basically the whole logic of this tutorial.  Then we echo or print out the retrieved data in order for us to see it in the browser.

2.1 Parts of Html Form










In this section, we will discuss about the basic parts of the form. Though I know the you already familiar with this when you study about html. Now its about time to put this form it to action!

A form is basically a container for your html variables like inputbox, button, radio, checkbox and so on. And form can also contain some attributes like action and method. There are lots of a form can use but for the sake of this tutorial we will just tackle only these two attributes since it is commonly used most of the time especially in server side scripting