From 7add2ea3f61e40c5f0f5539ac6e02533c9390db4 Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Fri, 15 Jun 2007 08:00:34 -0400 Subject: [PATCH] metaform: added pulldown support, added leftcheck metaform now ships a seperate stylesheet. metaform captions are cleaned up (underscores to spaces and capitalization) metaform's generated php has less duplication added enc_upper() enc_whatever functions can recieve the field name as the second parameter format_options() forces the value to be something in the options list metaform's auto-generated submit button says "Send" if it's e-mail only --- encode.php | 111 +++++++++++++++++++++++++++++++++++++++++--- format.php | 14 ++++++ metaform.php | 39 +++++++++++++--- metaform/htaccess | 3 ++ metaform/preview.html | 4 +- metaform/style.css | 18 +++++++ metaform/template.htaccess | 3 -- metaform/template.html | 9 +--- metaform/template.php | 24 +++++++--- template.php | 2 +- 10 files changed, 193 insertions(+), 34 deletions(-) create mode 100644 metaform/htaccess create mode 100644 metaform/style.css delete mode 100644 metaform/template.htaccess diff --git a/encode.php b/encode.php index a4c4587..38b09bd 100644 --- a/encode.php +++ b/encode.php @@ -89,20 +89,119 @@ function enc_tab($str) { return substr($out, 0, -1); } +function enc_upper($str) { + return strtoupper($str); +} + # display