by Shashi Dhar Kumar | May 8, 2009 | PHP, Programming
Introduction 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 PHP script is exactly the same as normal in HTML. As this is a PHP tutorial I will...
by Shashi Dhar Kumar | May 8, 2009 | PHP, Programming
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. The Mail Command Mail is extremely easy to send from PHP, unlike...
by Shashi Dhar Kumar | May 8, 2009 | PHP, Programming
The WHILE Loop The WHILE loop is one of the most useful commands in PHP. It is also quite easy to set up and use. A WHILE loop will, as the name suggests, execute a piece of code until a certain condition is met. Repeating A Set Number Of Times If you have a piece of...
by Shashi Dhar Kumar | May 8, 2009 | PHP, Programming
The Basics Of IF If statements are used to compare two values and carry out different actions based on the results of the test. If statements take the form IF, THEN, ELSE. Basically the IF part checks for a condition. If it is true, the then statement is executed. If...
by Shashi Dhar Kumar | May 8, 2009 | PHP, Programming
Printing Text To output text in your PHP script is actually very simple. As with most other things in PHP, you can do it in a variety of different ways. The main one you will be using, though, is print. Print will allow you to output text, variables or a combination...