Class formreload

Description

Prevent dublicate entries in database by a reload

Don't forget to initialize the session!

  • todo: Seems to work. Example see execute.php

Located in /structure/classes/tools.php (line 28)


	
			
Variable Summary
 string $tokenname
Method Summary
 boolean easycheck_empty ()
 HTML get_formtoken ()
Variables
string $tokenname = '__token' (line 40)

name of hidden element <input>

  • access: public
Methods
easycheck_empty (line 63)

check saved tokens with actual ones

  • return: : false=reload true=no reload
  • access: public
boolean easycheck_empty ()
get_formtoken (line 52)

generates a random uniq id

Generation of tokens like 204611b9eb74d7d3e3ecbe146313c7a9 each time the form is loaded. As $_SESSION saves old tokens, a comparison reveal if there was a reload or not. Evaluating with formreload::easycheck_empty()

  • return: hidden <input> for any form
  • access: public
HTML get_formtoken ()

Documentation generated on Sun, 19 Jul 2009 14:48:44 +0800 by phpDocumentor 1.4.2