PHP - Bits & Pieces

PHP programming codes and scripting are discussed in the manner of use and relevance. Examples of PHP syntax and scripting are presented in concise writups for better understanding.

Friday, May 23, 2008

Using PHP to check if a form has been submitted

The 'if' condition in this PHP script is place in the same page as the html form and is located at the top of the page, above the form. The purpose is to verify the inputs of the form. Example of uses include the Login Page.

if (isset($_POST['submit'])) {

//run this code when the submit button is activated, name the button submit

}

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home