Password Generation

Top  Previous  Next

This feature might be helpful, if you want to generate a password for a user who submits the form. You can send generated password to email, save it to a database or use as any other field.

Syntax:

gen_pass = field_name(num), dict_file.php

 

Example:

gen_pass = password(3) - will generate password with length 3 symbols

gen_pass = password - will generate password with default length (6 symbols)

gen_pass = password, ../forms/sample/dict.php - will select randomly one of the passwords form dictionary located at ../forms/sample/dict.php and write it to the "password" field.

 

Example of dict.php:

 

<?php header('Location: index.html'); ?> #DO NOT REMOVE THIS LINE!

password0

password1

password2

 

<?php header('Location: index.html'); ?> - this line will protect your password dictionary from unauthorized access. You should put the name of actual file instead of "index.html" or create an empty "index.html" file.