AJAX Sticky Form and PHP Sessions

Wednesday, April 15th, 2009

Sticky forms are so called because the data a user inputs into the form “sticks”. The problem with a standard web form is that the data inputted will only remain on the form until the form page is either refreshed or moved away from. This can lead to frustration for a user who has filled out a form but then decides to visit another page before returning to find they need to fill in every field of the form again.

Click here to view the demo

Click here to view the demo

Sticky forms give the user the freedom of moving around the site, knowing whatever actions they have taken on a form will still be there when they return. Using PHP sessions and cookies we can also store that information for use on forms on other pages or for when they visit the site at a later date.

In this tutorial we’re going to look at making sticky forms that will capture data in a PHP session. We’ll also use AJAX to make each field on our form save the data into a session as soon as that field loses focus.

(more…)

Share this post:
  • Print this article!
  • E-mail this story to a friend!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Furl
  • Live
  • MySpace
  • Reddit
  • StumbleUpon
  • Technorati
  • Propeller
  • YahooMyWeb

PHP Captcha Script for Comment Forms & Registration Forms

Wednesday, February 4th, 2009

If you’ve signed up to a website in the last few years then almost certainly, you’ve come across a PHP Capthca Script.

A PHP Captcha script is a way of determening whether the form on a website is actually filled in by a human rather than a computer program. As many websites offer better and better features, there’s more potential for those features to be exploited and as such, programs are used to attempt to automatically fill in registration and comment forms on a website to access them. Captcha’s have become the most popular method to prevent these automatic programs from completing a form submission. A Capthca is a simple challenge-response test, usually requiring the person to repeat a text string that appears in an image, in a field on the form. Images are used to present the challenge because it is difficult for an automatic program to read from the image.

An example of a Captcha validation form

An example of a Captcha validation form. Click to view our demonstration.

In ourĀ free PHP Captcha Script, we’ll provide you with the code and images to make implementing a Captcha form on your website as easy as could be! We’ll discuss how it works and how you can customise it to suit your website as well as make effective Captcha images. Read on for our complete guide…

(more…)

Share this post:
  • Print this article!
  • E-mail this story to a friend!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Furl
  • Live
  • MySpace
  • Reddit
  • StumbleUpon
  • Technorati
  • Propeller
  • YahooMyWeb

PHP Testimonials Script using Random Generator

Thursday, January 15th, 2009

Testimonials are a great way of showing visitors that your company and products have been bought by others and instill a feeling of confidence in a new customer. It’s a way of allowing previous customers to explain to new ones how great their experience was when they purchased from you.

Our PHP Testimonials Script will add a script to your website that makes displaying and updating your own testimonials simple! We wrote it for an upcoming website and it was designed to make updating easy, without going as far as using a content management system.

Click to download the PHP Testimonials Script

Click to download the PHP Testimonials Script

The script can either output all of your testimonials or generate a certain amount of your choosing, it can also truncate each testimonial should the height of the output area be fixed. Download it here, and read on to find out how it works…

(more…)

Share this post:
  • Print this article!
  • E-mail this story to a friend!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Furl
  • Live
  • MySpace
  • Reddit
  • StumbleUpon
  • Technorati
  • Propeller
  • YahooMyWeb