$value = format_~format~($_REQUEST['~name~']); tem_set('~name~', $value); $GLOBALS['~form_name~_fields'][] = $value; } if(isset($_REQUEST['~always_field~'])) { ~form_name~_get_fields(); if("you're happy with the values") { #db_insert('~form_name~', '~db_fields~', $GLOBALS['~form_name~_fields']); # fixme header('Content-type: text/plain'); print "e-mailing this: \n\n"; tem_output('~form_name~.email.txt'); exit(); } } tem_output('~form_name~.html'); ?>