Home > Demos > fbTicketAgent Class (To stop duplicate form submissions)   TicketAgent.php   TicketAgent.php  

The fbTicketAgent class is used to disallow resubmitting the same form
(either by clicking the submit button more than once, or clicking the Back button in the browser, and resubmitting the page again).

Text Field:

  Click this button to submit the form.

  Click anywhere on this image to submit the form.

Click here to submit the form via JavaScript (formName.submitButtonName.click()).

Click here to submit the form via JavaScript (formName.submit()).

  Click this button to cancel data entry.

  Click this button to reset the form values to their default values.

  Click this button to delete the ticket and start over.

Click here to restart.

The current time is:     Fri Dec 15 17:41:31 2017
You have attempted to submit this form 0 time(s)
The ticket's name is '/www/demo/TicketAgent.php' The raw ticket is=fbTicket Object ( [_count] => 0 [_ip] => 54.196.182.102 [_name] => /www/demo/TicketAgent.php [_time] => 1513359691 [_previous_time] => 0 ) _REQUEST=Array ( ) _SESSION=Array ( [fbTicket] => O:8:"fbTicket":5:{s:6:"_count";i:0;s:3:"_ip";s:14:"54.196.182.102";s:5:"_name";s:25:"/www/demo/TicketAgent.php";s:5:"_time";i:1513359691;s:14:"_previous_time";i:0;} ) HTTP_SESSION_VARS= _SERVER=Array ( [PATH] => /bin:/usr/bin:/usr/local/bin [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 [HTTP_ACCEPT_ENCODING] => x-gzip, gzip, deflate [HTTP_HOST] => freebeer.smithii.com [HTTP_USER_AGENT] => CCBot/2.0 (http://commoncrawl.org/faq/) [HTTP_IF_MODIFIED_SINCE] => Fri, 20 Oct 2017 08:37:28 GMT [DOCUMENT_ROOT] => /home/ross/public_html/freebeer [REMOTE_ADDR] => 54.196.182.102 [REMOTE_PORT] => 42270 [SERVER_ADDR] => 69.65.43.139 [SERVER_NAME] => freebeer.smithii.com [SERVER_ADMIN] => webmaster@freebeer.smithii.com [SERVER_PORT] => 80 [REQUEST_URI] => /www/demo/TicketAgent.php [SCRIPT_FILENAME] => /home/ross/public_html/freebeer/www/demo/TicketAgent.php [QUERY_STRING] => [SCRIPT_URI] => http://freebeer.smithii.com/www/demo/TicketAgent.php [SCRIPT_URL] => /www/demo/TicketAgent.php [SCRIPT_NAME] => /www/demo/TicketAgent.php [SERVER_PROTOCOL] => HTTP/1.0 [SERVER_SOFTWARE] => LiteSpeed [REQUEST_METHOD] => GET [X-LSCACHE] => on [PHP_SELF] => /www/demo/TicketAgent.php [REQUEST_TIME_FLOAT] => 1513359691.95 [REQUEST_TIME] => 1513359691 [argv] => Array ( ) [argc] => 0 )
$CVSHeader: _freebeer/www/demo/TicketAgent.php,v 1.2 2004/03/07 17:51:33 ross Exp $