You are here: Re: need help finding parsing error please « PHP « IT news, forums, messages
Re: need help finding parsing error please

Posted by Matthew Weier O'Phinney on 08/05/05 19:36

* Bruce Gilbert <webguync@gmail.com>:
> 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/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация