Monday, 9 June 2014

Simple Number Calculation Captcha Using Jquery

Captcha is the best way to ensure security of an input form in webpage. Instead of using captcha plugin, we can use jQuery to create numbered Calculation. Here is the code to create numbered captcha using jquery.

General concept behind this Calculation is two number will be shown, we have to add and type the sum in textbox.

For every page refresh two numbers will change
Refresh Calculation -> to change numbers
When we enter wrong total, an alert message will be displayed and two numbers will changed.


<!--########## PUT JQUERY LIBRARY INTO HEAD SECTION ###########-->

<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.1.min.js"></script>


<!--########## PUT JQUERY CODE INTO HEAD SECTION ###########-->

<script charset="utf-8" type="text/javascript">
 $(document).ready(function(){ 
  var aa = Math.ceil(Math.random() * 10);
  var ba = Math.ceil(Math.random() * 10);       
  var ca = parseInt(aa) + parseInt(ba);
  $("#verification_code2").val(''); 
  $("#verification_span").html("Sum of "+ aa + " + " + ba +"");  
  $("#verification_code").val(ca);

  $("#verification_code2").blur(function(e){
   var captcha1 = $("#verification_code").val(); 
   var captcha2 = $("#verification_code2").val(); 
   if(captcha1!=captcha2){
    alert ("Please Enter Valid Verification Code");
    return false; 
   }
  });
 });
</script>


<!--########## PUT HTML CODE INTO YOUR FORM ###########-->

<div>
Verification Code: (<span id="verification_span"></span>)
 <input id="verification_code2" name="verification_code2" type="text" value="" />
 <input id="verification_code" name="verification_code" type="hidden" value="" />
</div>

Monday, 28 April 2014

Top 10 content management systems

A CMS or Content Management System is an application that allows to manage, organize, publish, edit and create a website easily. A CMS application is used for retrieval and storage of information from a huge volume of data, these information may be in the form of word processor documents, spreadsheet, audio and video files and images. I gathered a list of top 10 PHP content management systems and you are gonna like the list.

Sunday, 27 April 2014

Uploading files into a Database using PHP

Hey guys do you want to see how file upload  works in PHP. Here is a script by which you can upload file to and from MySQL database respectively. In the upload script a form is used to select a file and that selected file is uploaded to the MySQL database by using INSERT method.

Saturday, 26 April 2014

Elance Wordpress 3.1 Skill Test Questions and answers

1. Install & Upgrade
2. Features, Performance and Security
3. Administration, Dashboard and Settings
4. Users and Roles
5. Post, Page, Custom Content Types, Taxonomies, and Fields
6. Plug-ins & Widgets
7. Theme
8. Code
9. SEO

Thursday, 24 April 2014

Joomla Interview Questions and Answers

Question 1: What is Joomla?

Joomla is a CMS (Content Management System), used for  publishing content over the internet. User management, Content Management (like Artilces), Images mangement, Global configuration etc all inbuilt. Install and use the software.

Monday, 21 April 2014

Object Oriented Programming in PHP

Object-oriented programming is a style of coding that allows developers to group similar tasks into classes. This helps keep code following the tenet "don't repeat yourself" (DRY) and easy-to-maintain.

Friday, 21 March 2014

MySql interview questions and answers for Experts

Question 1:  What Is MySQL?


Answer 1: MySQL is a very fast, multi-threaded, multi-user, and robust SQL (Structured Query Language) database server. MySQL is free software.

.