PHP ProgrammingOn-line Catalogues /
|
Regular Expressions / Form ValidationHave you ever wondered how many on-line forms ensure data is entered in a particular format? A good example would be a telephone number with area code such as (905) 257-1728. What is to prevent an end-user from leaving out the area code or using a dot instead of a dash? Using PHP and Regular Expressions, data entry can be restricted to conform to established criteria also known as pattern matching. Other examples include verifying the format of a Visa #, a postal / zip code or even determining if an e-mail address is valid. Once data is entered within an input field of a form it can be checked against pre-defined patterns called a regular expression. For more information on the use of pattern matching please visit www.regularexpressions.info. 17 Designs can incorporate Regular Expressions with PHP scripting into your on-line forms. Contact Us to learn how. History of PHPPHP, originally standing for Personal Home Page, is a server scripting language designed for producing dynamic web content commonly seen in on-line product catalogues. Written in the C programming language by Danish / Greenlandic programmer Rasmus Lerdorf in 1994, Lerdorf created PHP for the Internet community allowing others to shape its growth and success. Due to its open source availability and suitability for web development, not to mention that it can be embedded directly into HTML code, PHP quickly evolved to global usage. Now in its fifth release and soon to be sixth, PHP has risen in popularity exponentially and is used by developers that prefer not to pay a license fee for dynamic web page development.
PHP is a versatile, extremely powerful programming language and we commonly use it to achieve,
Since PHP executes on the host server during page retrieval, it does not suffer the limitations of browser compatability that can occur with Javascript nor can PHP be turned off like Javascript. Hence, it is always available and its execution time is lightning fast. |