Home   |   Support   |   Blog  |   About

Simple password protection for forms

Sometimes, you would want to restrict your form to a limited set of users. Only those who have a password can submit the form.

Here is an extension module to password protect your form.

Usage:
Download the extension module.
Open the file pwdprotect.php in any text editor (like Notepad)
Edit the user name/passwords. The format is like this: ‘username’=>’password’

function PasswordProtect()
{
    //username => password
    $this->logins = array('pmj'=>'p',
                'prasanth'=>'sim');
}

In Simfatic Forms, Enable ‘Extension Modules’ (Form processing options page)
In the ‘Extension modules’ page, press the ‘Add module’ button and select your updated pwdprotect.php file
Re-upload the form

Now, when you open the form page, your browser will show a box asking for username and password

request password dialog box

  • email
  • Twitter
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Reddit
  • Slashdot
  • Technorati
  • DZone
  • StumbleUpon

Tags: ,

4 Responses to “Simple password protection for forms”

  1. wo this is such a great sharing , and good for those kind of entry needed for secure office work . thanks alot for the great sharing!

  2. shahidNo Gravatar says:

    Could not display contact form

  3. JohnNo Gravatar says:

    It’s great. One of the reasons I chose Simfatic Forms is because it has a no-nonsense business-like approach. No sarcastic or annoyingly-cute comments like another form software. This password-protect is easy to use and works perfectly. No nonsense.

Add New Comment

Simfatic menu
Simfatic menu

About Us . Privacy Policy
Copyright© 2005-2011 Simfatic Solutions