From: Jason Woofenden Date: Wed, 11 Feb 2009 21:15:52 +0000 (-0500) Subject: when metaform's default php checks if the form is submitted, it checks for a value... X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=9adfcab5e81171f196b369076da10561b8997dbf;p=wfpl.git when metaform's default php checks if the form is submitted, it checks for a value in $_POST[] so you can pass values on the URL without triggering it --- diff --git a/metaform/main.html b/metaform/main.html index 5e72e66..ed6b0c4 100644 --- a/metaform/main.html +++ b/metaform/main.html @@ -11,7 +11,7 @@

The form name should not contain any capitals or symbols (besides underscore)

-

page/table name:

+

Page/table name:

Same as above but singular: (Used in messages and headers.)

diff --git a/metaform/template.php b/metaform/template.php index 965f38c..be61e2f 100644 --- a/metaform/template.php +++ b/metaform/template.php @@ -164,7 +164,7 @@ function _~form_name~_main() { tem_show('new_msg'); } - 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") {