Re: need help finding parsing error please

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Bruce Gilbert <webguync@xxxxxxxxx>:
> Hello,
>
> I am getting this on the following code, and I am not sure what is
> causing the error and need some pros to take a look at it for me.
>
> the error is:
>
> Parse error: parse error, unexpected '{' in
> /hsphere/local/home/bruceg/inspired-evolution.com/Contact_Form2.php on
> line 161

<snip>

> if ($_POST['op']!='ds') { 
>     // they need to see the form
>     echo "$form_block";
>     } else if ($_POST["op"]  == "ds")  {

Where's the end to this elseif? You follow it immediately with the
following lines, which simply won't work (can't define functions inside
if() blocks).

> //Function saves time and space by eliminating unneccesary code
> function check($fieldname)
> 	{


-- 
Matthew Weier O'Phinney
Zend Certified Engineer
http://weierophinney.net/matthew/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux