PHP Tutorial – $_GET Function

The PHP built-in $_GET function is used to collect values in a form (as name says, you do this with the method=”get”) You should remember that the information sent from a form with the GET method is visible to everyone, because the result is displayed in the address bar.

The $_GET function limits the number of characters to be send (max. 100 characters.) More »


Posted in PHP Tutorials | 1 Comment


PHP Tutorial – Form Handling

In this PHP language tutorial we will look at PHP forms and form handling. We will use the PHP $_GET and $_POST variables to retrieve information from the HTML form. You use forms to get user input. More »


Posted in PHP Tutorials | 1 Comment


How to make a Calendar in C

In the C tutorial “How to use Time and Date in C” some people asked questions in the comment section about determining dates and day of the week. That’s why we created this tutorial to show you what things you have to lookout for, such as leap years. More »


Posted in C Tutorials | 32 Comments


PHP Tutorial – Functions Parameters and Return Values

In a previous tutorial we looked at how to make your own PHP functions. In this PHP tutorial we will see how to use function parameters (for example passing a variable to a function) and function return values.

Functions Parameters

Parameters are specified after the function name, inside the parentheses. More »


Posted in PHP Tutorials | 3 Comments


PHP Tutorial – Functions

The power of the PHP language is the large number of built-in functions (more than 700 built-in function and counting lipitor weight gain.) But of course it also possible to create your own functions. In this PHP tutorial we will create our own functions.

A function will only be executed if a function is called by another piece of code. You can see that this is very handy. For example you can keep the browser from executing a script when the page loads by putting your script into a function. Only when the function is called (for example by pushing a button) the function is executed. More »


Posted in PHP Tutorials | Comments Off on PHP Tutorial – Functions


PHP Tutorial – foreach Loop

The “foreach” loop gives PHP an easy way to iterate over arrays and can only be used on arrays.

Syntax

There are two syntaxes although the second is only a minor extension of the first. More »


Posted in PHP Tutorials | 2 Comments


PHP Tutorial – For Loops

The “for loop” execute a block of code a specified number of times while a specified condition is true.

Syntax


for (init; condition; increment)
{
    code to be executed;
}

More »


Posted in PHP Tutorials | 3 Comments


PHP Tutorial – do…while Loops

The do…while statement will always execute the block of code once. After this first execute it will check the condition, and repeat the loop (keep executing) while the condition is true. More »


Posted in PHP Tutorials | Comments Off on PHP Tutorial – do…while Loops


PHP Tutorial – While Loops

The PHP language has four different kinds of conditioned loops. In this PHP tutorial we will look at the “while” loop. Loops are used to execute a block of code multiple times.

In PHP, we have the following loop statements: More »


Posted in PHP Tutorials | Comments Off on PHP Tutorial – While Loops


PHP Tutorial – Arrays

In this PHP language tutorial we will take a look at arrays in PHP. A normal variable holds only one value. An array is different. An array lets you declare and work with a collection of values.

If you would use normal variables to store for instance a list of names it would look something like this: More »


Posted in PHP Tutorials | 2 Comments