3 require_once('code/wfpl/template.php');
4 require_once('code/wfpl/format.php');
5 #require_once('code/wfpl/db.php'); # fixme
7 function ~form_name~_get_fields() {
8 $GLOBALS['~form_name~_fields'] = array();<!--~formats start~-->
10 $value = format_~format~($_REQUEST['~name~']);
11 tem_set('~name~', $value);<!--~db_field start~-->
12 $GLOBALS['~form_name~_fields'][] = $value;<!--~end~--><!--~end~-->
16 if(isset($_REQUEST['~always_field~'])) {
17 ~form_name~_get_fields();
19 if("you're happy with the values") {
20 #db_insert('~form_name~', '~db_fields~', $GLOBALS['~form_name~_fields']); # fixme
21 header('Content-type: text/plain');
22 print "e-mailing this: \n\n";
23 tem_output('~form_name~.email.txt');
28 tem_output('~form_name~.html');