Url, Email and User Id Validation in PHP

There’s a few validation we need frequently.  Email, url and user id validation are required both in Php and JavaScript. Usually I use regular expression for those. For Email Validation For Url Validation For User Id validation Using filter_var() function is quiet easy. By using it we can easily validate email and url without using […]

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
Read More
Post Pic

Form Validation with Jquery

Generally when we are doing some application we need forms such as login form, registration form and so on. That forms need validation. if we set only server side validation that causes some problems. All kinds of validation is possible in Jquery.  A sample is given below.

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
Read More
Post Pic

PHP switch statement

PHP switch statement is an excellent substitution of php if or elseif. If you have many conditions for the same variable then you can use it. PHP switch statement is very similar to the php if statement. General Structure of PHP Switch Statement: PHP switch statement example: If you want to write a little program, […]

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
Read More
Post Pic

PHP if statement

PHP if statement is PHP language’s one of the most important feature. You can use it when you need to execute some code depending on some conditions. General structure of PHP if statement: Example: In the above PHP if statement example the variable $number is assigned a value. Then there applied a checking whether the […]

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
Read More
Post Pic

PHP Data Types

Knowledge about PHP data types is very important to lean PHP very well. PHP supports eight types of primitive data types. Among these eight php data types 4 are scalar data types, 2 are compound data types and 2 are special data types. 1. Scalar Data Types. boolean float integer string 2. Compound Data Types: […]

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
Read More
Post Pic

PHP variables

Variable is essential in programming language. It’s not different for php variables. A variable store a value whether it’s a string or integer. In PHP the variable format is as follows. If the dollar sign is omitted, it shows error. It’s a common mistake for the new programmers. Important thing about PHP variables: Starts with […]

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
Read More
Post Pic

PHP Syntax

If you are familiar with some basic programming language such as C, C++, Java or perl then the PHP syntax would be familiar to you. If you not then no problem this tutorial will help you to be familiar with php syntax. Creating a basic php file is very easy as HTML file. When PHP […]

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
Read More

Categories