You are here: Re: Parse Errors & Quote Marks « All PHP « IT news, forums, messages
Re: Parse Errors & Quote Marks

Posted by Cerebral Believer on 10/11/17 11:59

Sorry, I meant I hadn't seen Olivers post. Thanks Oliver!

"Cerebral Believer" <nospamthanks@hadenoughalready.com> wrote in message
news:MMUSg.46845$G72.2344@newsfe3-gui.ntli.net...
>
> "Johnny" <removethis.huuanito@hotmail.com> wrote in message
> news:YAUSg.478$UJ2.294@fed1read07...
>>
>> "Cerebral Believer" <nospamthanks@hadenoughalready.com> wrote in message
>> news:VATSg.43006$SH2.7891@newsfe4-gui.ntli.net...
>>> I should have pointed out that line 318 is the line displayed, and the
>> error
>>> is a syntax error, unexpected '='...
>>
>> which is consistent with Oliver's post pointing out that - is not allowed
>> in
>> a var name,
>> it's interpretting that you said
>>
>> $e - mail_1 = $_POST['e-mail_1'];
>>
>>
>> php expects operators to be on the right hand side of the =
>
> Yes, thanks I just changed this, and have started to debug - this is my
> first PHP script so I am just getting used to what is allowable in PHP. I
> hadn't seen Johnny's post at the time I posted due to a mess up with my
> newsreader.
>
> Do you know if:
>
> if ( $value == "" )
> {
> if ($field != "address_2" or "address_3" or "int_code" or
> "extension")
> {
> $blank_array[$field] = "blank";
> }
> }
>
> Is the right way to express that only these fields are allowed to be
> blank?
>
> Regards,
> C.B.
>

 

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

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