From 9adfcab5e81171f196b369076da10561b8997dbf Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Wed, 11 Feb 2009 16:15:52 -0500 Subject: [PATCH] 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 --- metaform/main.html | 2 +- metaform/template.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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") { -- 1.7.10.4