Why it doesn't work?
| From: | KidA | Date: | Tue, 07 Jan 2003 13:50:55 +0000 |
| Subject: | Why it doesn't work? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-130620@lists.php.net to get a copy of this message | ||
Hi to all,
I found this error in my code:
class BaseForm {
var $_fields;
var $_method;
var $_postedData;
var $_formAction;
....
....
function init($eMsgFile,$method,$formAction) {
...
...
$this->_method=strtoupper($method);
----->>> Why next line gives me the error "variable _POST is undefined" ???
<<<------
$this->_postedData=${"_".$this->_method};
$this->_formAction=(empty($formAction))?basename($_SERVER['PHP_SELF']):$formAction;
}
Is it normal????
Thank you a lot!
KidA