Image Source:www.faqs.org
Do you know what if felt like when you’re forgetting something and you promised to remember even just for one day? It felt like not having sessions in your website. Sessions in PHP temporarily saves important data that is needed for browsing the whole site, into the server for future references. Therefore, it will [...]
Filed under: Advanced Programming, Basic Programming, Information, Sample Code by Celine
No Comments »
This form of array declaration allows one to change the case from uppercase to lowercase and vice versa. The syntax goes as follows:
array_change_key_case(array,case)
The array part, specifies which table or array to use and is a required field which is not the case with the key which is automatically assigned a value. An example of it’s [...]
Filed under: Basic Programming, Sample Code by Avatar
No Comments »
The “welcome.php” file can now utilize the $_POST variable to catch the data contained within the form as with the request variable in the previous posts, the form fields will automatically be the ID keys in the $_POST array. This variable would be very useful for passwords and user name and other entry forms (having [...]
Filed under: Basic Programming, Sample Code by Celine
No Comments »
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 »
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 »
Sample :
Sample use of a function in a PHP script.
Filed under: Basic Programming, Sample Code by Avatar
No Comments »