|
Posted by Cerebral Believer on 10/11/28 11:59
"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]
|