Category: PHP Tutorials

E-mail With PHP

Introduction One of the major uses of a server side scripting language is to provide a way of sending e-mail from the server and, in particular, to take form input and output it to an e-mail address. In this part I will show you how to send e-mail messages using PHP. The Mail Command Mail […]

Read More

PHP GET and POST Methods

There are two ways the browser client can send information to the web server. The GET Method The POST Method Before the browser sends the information, it encodes it using a scheme called URL encoding. In this scheme, name/value pairs are joined with equal signs and different pairs are separated by the ampersand. name1=value1&name2=value2&name3=value3 Spaces […]

Read More

PHP With Forms

Introduction In the last part, I showed you how to use PHP to send e-mail messages using a script. In this part I will continue this and also show you how to use PHP and forms together to make your PHP scripts useful. Setting Up Your Form Setting up a form for use with a […]

Read More

Php-operators-if-else-elseif

If, Else, Elseif are called the Conditional statements that are used for performing different actions according to different conditions.   Operators; If, Else, Elseif; Loops Conditional Statements If, Else, Elseif are called the Conditional statements that are used for performing different actions according to different conditions. Many times programmers may have to apply different conditions to […]

Read More

PHP Operators

  Welcome! In this section we going to cover differect kinds of operators we use in programming. These operators are common to ever language. So, in PHP they are no diffrent. We will go through each type of operators with examples on how they are done PHP. Arithmetic Operators : In programming, we often perform […]

Read More

PHP Arrays

Array is a special variable that allows to store more than one value including the whole bunch of variable inside a variable.  Array is a special variable that allows to store more than one value including the whole bunch of variable inside a variable. For example, if you have a list of items, which are […]

Read More

PHP String Variables

PHP String Variables A string variable is used to store and manipulate text. String Variables in PHP String variables are used for values that contains characters. In  this  chapter  we  are  going  to  look  at  the  most  common  functions  and operators used to manipulate strings in PHP. After  we create a string  we can manipulate  it. […]

Read More

PHP Variables

PHP Variables Variables are used for storing a values, like text strings, numbers or arrays. When a variable is declared, it can be used over and over again in your script. All variables in PHP start with a $ sign symbol. The correct way of declaring a variable in PHP: $var_name = value; New PHP […]

Read More

Comments in PHP

Comments in PHP In PHP,  we  use  //  to  make  a  single-line  comment  or  /*  and  */  to  make  a large comment block. <html> <body> <?php //This is a comment /* This is a comment block */ ?> </body> </html>

Read More

PHP Syntax

PHP Syntax PHP code is executed on the server, and the plain HTML result is sent to the browser. Basic PHP Syntax A  PHP  scripting  block  always  starts  with <?php and  ends  with ?>.  A  PHP scripting block can be placed anywhere in the document. On  servers  with  shorthand  support  enabled  you  can  start  a  scripting  block with <? and […]

Read More