The $_POST Variable
The variable is an array of variable names and values that is sent by the HTTP POST method. The $_POST variable is used to collect values from a form with the method=”post”. The information sent from a form through this method is invisible to others and has no limits with concerns to the [...]
Filed under: Basic Programming, Sample Code by Avatar
No Comments »
The file “welcome.php” can now use the $_GET variable to obtain all the required information which is shown on the address bar. As it does that, all the name fields of the form will automatically be the ID keys in the $_GET array variable.
Welcome .
You are years old!
The use of the $_GET variable results in [...]
Filed under: Basic Programming, Sample Code by Avatar
No Comments »
The $_GET variable is an array of variable names with the corresponding values sent by the HTTP GET method. It is used to collect values from a form by using the method=”get”. All information sent by a form using this method is visible to all on the browser’s address bar but it is limited to [...]
Filed under: Basic Programming, Sample Code by Avatar
No Comments »
As the previous post discussed, PHP is very easy to use with web pages for the language has all the elements of a web page as a useable element. Now, going forward, forms or pages are easily handled and checked on the user end, meaning when you open a page the data input is easier [...]
Filed under: Basic Programming by Avatar
No Comments »
The sample page in the previous post contains two input fields that are name and age, when the user inputs the data and clicks on the submit button, the form’s data is sent to the file “welcome.php” file. The resulting php file would look something like this:
Welcome .
You are years old
The output of the [...]
Filed under: Basic Programming, Sample Code by Celine
No Comments »
PHP as a scripting language means it is designed to work with ease of use on web page designs. Such pages often require the user to input data which can then be treated as input to the various elements of the program that are contained within the script to obtain the desired result. The PHP [...]
Filed under: Basic Programming, Sample Code by Avatar
No Comments »
That’s how easy a function can be made to do a series of operations by being influenced by parameters. We now focus on the area of having functions that returns a value, say the processing of a block of code or an operation done on a set of data.
Sample :
The output of the code would [...]
Filed under: Basic Programming, Sample Code by Avatar
No Comments »
Now, the first sample PHP function did something very simple that it displayed a string that does not change and was not influenced by any parameters. We then move to show functions with one or more parameters that make them more powerful and diverse. That is done by placing these parameters inside the “()”.
Filed under: Information by Avatar
No Comments »