What's the point of " $editFormAction "
On an older site , I updated some Insert routines and started getting an error...
Eventually, I traced it to the form and the undefined variable: $editFormAction
Example:
<form id="form1" name="form1" method="POST" action="<?php echo $editFormAction; ?>">
Removing the reference in the form action solved the problem but I wonder what the point of this is?
I searched out some older documents and see the following defines the variable:
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}
Is it deprecated? Or is it just used to reload the same page on post?