Update persist_form.php
This commit is contained in:
parent
c011fcbb90
commit
dd8c6bb3d3
|
|
@ -27,7 +27,7 @@
|
||||||
function persistform($form_array) {
|
function persistform($form_array) {
|
||||||
// Remember Form Input Values
|
// Remember Form Input Values
|
||||||
if (is_array($form_array)) {
|
if (is_array($form_array)) {
|
||||||
$content .= "<form method='post' action='".$_SERVER["HTTP_REFERER"]."' target='_self'>\n";
|
$content .= "<form method='post' action='".escape($_SERVER["HTTP_REFERER"])."' target='_self'>\n";
|
||||||
foreach ($form_array as $key => $val) {
|
foreach ($form_array as $key => $val) {
|
||||||
if ($key == "XID" || $key == "ACT" || $key == "RET") continue;
|
if ($key == "XID" || $key == "ACT" || $key == "RET") continue;
|
||||||
if ($key != "persistform") { //clears the persistform value
|
if ($key != "persistform") { //clears the persistform value
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue