Programming Tools

where students meet to knowledge



Form Validation in PHP

PHP Form Validation Example * required field. Name: * E-mail: * Website: Description: Gender: F M * Your Input: The validation rules for the form above are as follows:   Field Validation Rules Name Required. + Must only contain letters… Continue Reading →

How to Create form in PHP

The PHP superglobals $_GET and $_POST are used to collect form-data. <html> <body> <form action=”form.php” method=”post”> Name: <input type=”text” name=”name”><br> E-mail: <input type=”text” name=”email”><br> <input type=”submit”> </form> </body> </html> Explanation: The POST method can be used to send ASCII as well as binary data. The data sent by POST method goes through HTTP… Continue Reading →

PHP Variables

PHP Comments

PHP Syntax

Intrduction To PHP

PHP 5 if…else…elseif Statements

Conditional statements are used to perform different actions based on different conditions. PHP Conditional Statements Very often when you write code, you want to perform different actions for different conditions. You can use conditional statements in your code to do… Continue Reading →

PHP Operators

PHP Operators Operators are used to perform operations on variables and values. PHP divides the operators in the following groups: Arithmetic operators Assignment operators Comparison operators Increment/Decrement operators Logical operators String operators Array operators PHP Arithmetic Operators The PHP arithmetic… Continue Reading →

PHP 5 Constants

PHP 5 Constants Constants are like variables except that once they are defined they cannot be changed or undefined. PHP Constants A constant is an identifier (name) for a simple value. The value cannot be changed during the script. A valid… Continue Reading →

PHP 5 Strings

PHP 5 Strings A string is a sequence of characters, like “Hello world!”. PHP String Functions In this chapter we will look at some commonly used functions to manipulate strings. Get The Length of a String The PHP strlen() function… Continue Reading →

PHP Data Types

PHP Data Types Variables can store data of different types, and different data types can do different things. PHP supports the following data types: String Integer Float (floating point numbers – also called double) Boolean Array Object NULL Resource PHP… Continue Reading →

PHP 5 echo and print Statements

In PHP there are two basic ways to get output: echo and print. PHP echo and print Statements echo and print are more or less the same. They are both used to output data to the screen. The differences are… Continue Reading →

© 2018 Programming Tools —