Index: trunk/kernel/parser.php
===================================================================
diff -u -r80 -r105
--- trunk/kernel/parser.php (.../parser.php) (revision 80)
+++ trunk/kernel/parser.php (.../parser.php) (revision 105)
@@ -365,6 +365,7 @@
@description: creates an INPUT tag for a form field. All extra attributes are passed to the INPUT tag
@attrib: _Form:: Form name for the field
@attrib: _Field:: Field Name
+ @attrib: _ForgetValue:bool: if true, forget value
@attrib: _Required:bool: If set, In-Portal requires this field have a value when submitting
@example:
*/
@@ -375,13 +376,16 @@
$html_attribs = ExtraAttributes($attribs);
$form = $attribs["_form"];
$field = strtolower($attribs["_field"]);
- if(isset($_POST[$field]))
+ if(isset($_POST[$field]) && $attribs['_forgetvalue'] != 1)
{
$value = $_POST[$field];
}
- else
- $value = $FormValues[$form][$field];
- // echo $form.".".$field."=".$value."
\n";
+ else {
+ if ($attribs['_forgetvalue'] != 1) {
+ $value = $FormValues[$form][$field];
+ }
+ }
+ //echo $form.".".$field."=".$value." = ".$attribs['_forgetvalue']."
\n";
if($form=="m_register" && ($field=="password" || $field=="passwordverify") && $objConfig->Get("User_Password_Auto"))
{
$ret = "";
@@ -1241,6 +1245,7 @@
}
}
}
+ $ret = stripslashes($ret);
return $ret;
}