Welcome! If you like our Blog so please Follow this blog and also +1 this blog here---->
Showing posts with label PHP. Show all posts
Showing posts with label PHP. Show all posts

Wednesday, 15 August 2012

PHP Tutorial 15: PHP $_POST Function

0 Comments
In PHP, the predefined  $_POST variable is used to collect values in a form with method="post". The $_POST Variable The predefined $_POST variable is used to collect values from a form sent with method="post". Information sent from a form with the POST method is invisible to others and has no limits on the amount of information to send. Note: However, there is an 8 Mb max size for the POST method, by default (can be changed by setting...[Readmore]

PHP Tutorial 14: PHP $_GET Variable

0 Comments
In PHP, the predefined $_GET variable is used to collect values in a form with method="get". The $_GET Variable The predefined $_GET variable is used to collect values in a form with method="get" Information sent from a form with the GET method is visible to everyone (it will be displayed in the browser's address bar) and has limits on the amount of information to send. Example <form action="welcome.php" method="get">Name: <input...[Readmore]

PHP Tutorial 13: PHP Forms

0 Comments
The PHP $_GET and $_POST variables are used to retrieve information from forms, like user input. PHP Form Handling The most important thing to notice when dealing with HTML forms and PHP is that any form element in an HTML page will automatically be available to your PHP scripts. Example The example below contains an HTML form with two input fields and a submit button: <html><body><form action="welcome.php" method="post">Name:...[Readmore]

PHP Tutorial 12: PHP Functions

0 Comments
The real power of PHP comes from its functions. In PHP, there are more than 700 built-in functions. PHP Built-in Functions For a complete reference and examples of the built-in functions, please visit our PHP Reference. PHP Functions In this chapter we will show you how to create your own functions. To keep the script from being executed when the page loads, you can put it into a function. A function will be executed by a call to...[Readmore]

PHP Tutorial 11: PHP Looping - For Loops

0 Comments
Loops execute a block of code a specified number of times, or while a specified condition is true. The for Loop The for loop is used when you know in advance how many times the script should run. Syntax for (init; condition; increment)  {  code to be executed;  } Parameters: init: Mostly used to set a counter (but can be any code to be executed once at the beginning of the loop) condition: Evaluated for each loop iteration....[Readmore]

PHP Tutorial 10: PHP Looping - While Loops

0 Comments
Loops execute a block of code a specified number of times, or while a specified condition is true. PHP Loops Often when you write code, you want the same block of code to run over and over again in a row. Instead of adding several almost equal lines in a script we can use loops to perform a task like this. In PHP, we have the following looping statements: while - loops through a block of code while a specified condition is true do...while -...[Readmore]

PHP Tutorial 9: PHP Arrays

0 Comments
An array stores multiple values in one single variable. What is an Array? A variable is a storage area holding a number or text. The problem is, a variable will hold only one value. An array is a special variable, which can store multiple values in one single variable. If you have a list of items (a list of car names, for example), storing the cars in single variables could look like this: $cars1="Saab";$cars2="Volvo";$cars3="BMW"; However,...[Readmore]