Re[2]: [PHP] Passing many valaues to function
| From: | Daniel Harik | Date: | Sat, 03 Nov 2001 19:56:30 +0000 |
| Subject: | Re[2]: [PHP] Passing many valaues to function | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-73331@lists.php.net to get a copy of this message | ||
I have following code
<?
class Member{
function vallidateForm ($HTTP_POST_VARS){
echo "$HTTP_POST_VARS['frmUsername']";
}
}
$user = new Member;
if($action=="register"){
$user->vallidateForm($HTTP_POST_VARS);
}else{
$user->displayForm();
}
Why i try to run it i get error
Parse error: parse error, expecting
T_STRING' or T_VARIABLE' or
`T_NUM_STRING' in c:\program files\apache group\apache\htdocs\cms\member.php on line 235
Thank you very much