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.

Thursday, 6 March 2014

How to Speed up your Drupal 7 website

Before we go into the details of techniques and tips to speed up drupal 7, lets understand what slows down drupal.
  • Database queries
  • Loading CSS, Javascript and Images.
  • Loading unwanted modules
  • Now some quick things for speed up and optimize your drupal are listed below.

Tuesday, 25 February 2014

Hire PHP Developer

We are a team of 3 freelancer PHP Developer and 2 website designers. We having average 5+ years of experience in developing PHP web development using LAMP (Linux, Apache, MySQL, PHP) application technologies. We offers wide range of resumes and technical capability matrix from where you can hire dedicated developer as per your exact requirements.

Jquery interview questions and answers for experienced

Ques 1. What is jQuery?

Ans 1:  jquery is javascript library which provides fast and easy way of HTML DOM traversing and manipulation required a jquery.js file. After that you can write the jquery as fallows. It uses "$" as the short hand to write jquery code.

Code Example
$(document).ready(function()
{
    function body
});


Ques 2. How is body onload() function is different from document.ready() function used in jQuery?

Sunday, 23 February 2014

Eight Solid Reasons Why You Should Use WordPress

WordPress is web software you can use to create a beautiful website or blog. We like to say that WordPress is both free and priceless at the same time. Now Most of users are started development on WordPress The main reason for its popularity is its admin very easy to use and manage.

If you are new to WordPress and looking for reasons to use WordPress as a CMS (content management system) in your new website, let me give you some.

Drupal interview questions and answers for freshers

Questions 1 :  What is Drupal?
Answers    1 :  Drupal is an open source content management system offering a toolset. With integrated social media and e-commerce functionality, it provides unique value as part of your social media strategy.
Questions  2:    Why use Drupal?
Answers    2 :
.