Re: Unable to get a form to update

From: Date: Fri, 23 Aug 2002 11:41:34 +0000
Subject: Re: Unable to get a form to update
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-113745@lists.php.net to get a copy of this message
Jason Wong said: [...] >> >> However if I send the output to another php file, the values are >> correct and up to date. Its just that when the form calls >> contacts.php, it fails. >> >> Can you see if there is some kind of basic logic failure in the if >> elseif construction that stops this being called? > > Does your variables contain what you think they contain? > [...] Hi Jason, I made a copy of contacts php (try.php) and deleted the 'if ($person_id)' section and then made the form's action call try.php It worked perfectly. so at least I have a workable system. It will be a lot more convenient for me if I can get it all working within contacts.php. It appears to me that when the form calls PHP_SELF, then it activates the 'if (person_id)' block instead of the 'if ($submit)' block.

« previous php.general (#113745) next »