ad_dbclick_check_dml

EveAndersson.com : API Browser : ad_dbclick_check_dml

ad_dbclick_check_dml

ad_dbclick_check_dml [ -bind bind ] statement_name table_name \
    id_column_name generated_id return_url insert_dml
Defined in packages/acs-core/utilities-procs.tcl

This proc is used for pages using double click protection. table_name is table_name for which we are checking whether the double click occured. id_column_name is the name of the id table column. generated_id is the generated id, which is supposed to have been generated on the previous page. return_url is url to which this procedure will return redirect in the case of successful insertion in the database. insert_sql is the sql insert statement. if data is ok this procedure will insert data into the database in a double click safe manner and will returnredirect to the page specified by return_url. if database insert fails, this procedure will return a sensible error message to the user.

Switches:
-bind (optional)

Parameters:
statement_name
table_name
id_column_name
generated_id
return_url
insert_dml
[ show source ]

Show another procedure:

eve@eveandersson.com