JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
when metaform's default php checks if the form is submitted, it checks for a value...
authorJason Woofenden <jason283@herkamire.com>
Wed, 11 Feb 2009 21:15:52 +0000 (16:15 -0500)
committerJason Woofenden <jason283@herkamire.com>
Wed, 11 Feb 2009 21:15:52 +0000 (16:15 -0500)
metaform/main.html
metaform/template.php

index 5e72e66..ed6b0c4 100644 (file)
@@ -11,7 +11,7 @@
   <form action="~metaform_name~" method="get">
     <p>The form name should not contain any capitals or symbols (besides underscore)</p>
 
-    <p>page/table name: <input type="text" name="form_name" value="~form_name.attr~" /></p>
+    <p>Page/table name: <input type="text" name="form_name" value="~form_name.attr~" /></p>
 
     <p>Same as above but singular: <input type="text" name="singular" value="~singular.attr~" /> (Used in messages and headers.)</p>
 
index 965f38c..be61e2f 100644 (file)
@@ -164,7 +164,7 @@ function _~form_name~_main() {<!--~end~--><!--~opt_http_pass_2 start~-->
                tem_show('new_msg');
        }<!--~end~-->
 
-       if(isset($_REQUEST['~always_field~'])) {
+       if(isset($_POST['~always_field~'])) {
                list(~php_fields~) = ~form_name~_get_fields();
 
                if("you're happy with the POSTed values") {<!--~opt_db_4 start~-->