Re: [PHP] Error while calling a function--Thanks

2001-12-20 Thread J.F.Kishor
Hi pals, Thanks a lot for all the PHP pals , I have recoded my script an' now itz working fine. cheers an' regards, - JFK kishor Nilgiri Networks -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Error while calling a function

2001-12-18 Thread J.F.Kishor
hi all, I have got a problem, when I execute the following script it gives a Fatal error, could any one tell me why is it ?, If this is a silly problem please execuse me but, plz do reply me. The script is - html body ? if(!$Phone) { ? form action=?echo $PHP_SELF?

Re: [PHP] Error while calling a function

2001-12-18 Thread Steve Cayford
I don't know all the details about how PHP compiles a program, but having your function definitions in an if-else statement that may not be executed looks suspicious to me. You've got if(!$Phone) { do something } else { function is_phone() { ...blah, blah...} } is_phone($Phone); If

Re: [PHP] Error while calling a function

2001-12-18 Thread Jim Lucas
Try putting a closing ? php tag just before the final HTML. Jim - Original Message - From: J.F.Kishor [EMAIL PROTECTED] To: PHP Mailing List [EMAIL PROTECTED] Sent: Tuesday, December 18, 2001 5:26 AM Subject: [PHP] Error while calling a function hi all, I have got a problem, when I

Re: [PHP] Error while calling a function

2001-12-18 Thread Fred
Steve is right on the money. Your function definitions are inside a conditional if statement which means that they may or may not be parsed. Your call to the function, on the other hand, is not within that same conditional if statement. That means your functions is getting called

Re: [PHP] Error while calling a function

2001-12-18 Thread J.F.Kishor
AM Subject: [PHP] Error while calling a function -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]