Upgrading Pt 2
Reverted to original formo module….
Then had many of original Error 1 and Error 2 problems to resolve
Then, still having problems with editperson (no person_id)… tried everything…. but couldn’t see how old code worked.
Added this in editperson.php and it fixed the symptom but didn’t explain how it used to work.
else if (isset($_REQUEST['Person_id']))
{
$person_id = $_REQUEST['Person_id'];
}
Eventually went back to original oohforms.inc (in phplib). Had to change ereg to preg_match and change a few class constructor names but it now works as it used to.
NEW oohforms puts in
form accept-charset="UTF-8" action="/admin/editperson.php" method="post" name="" target="_self"
and we lose original GET parameters (e.g. ?p=4955&r=/addresses.php#4955)
OLD oohforms puts in
form action="" method="POST" name="" target="_self"
and action=”” (while dangerous (opens the page up to iframe clickjacking attacks), and even invalid in HTML5) sends back to original page WITH original GET parameters… and now it works the way it used to…
