function showerror()


used to display a default error message, when submitting a form,

function showerror($err_msg = NULL, $errTitle = true, $errlnk = FORM, $errheader = NULL, $errfooter = true, $boxTitle = NULL )

if $errlnk == "FORM", a go back form button will be displayed under the error message, and will store all posted form fields, and send them back along with $contenterror to refill the posted form when the normal page would have expired or just be empty again.

all vars are then needed to be added to the global, and the first time page load database query need to be within

if ( empty( $contenterror ) ) {

    $result = dbquery()