Search the Community
Showing results for tags '||'.
-
Hi, Can someone explain in english what this is doing to email addresses? Is it validating the users input format? I've got 2 Buy Now buttons that take people to Paypal but then Paypal says error wrong email address. Yet above this code $ppe is set as my correct paypal email address. This is from my config.php. Does the 2nd to last line change $e into my $ppe paypal email? if ($_SESSION['page'] !== 'index') {} else { $e = $_GET['e']; if ( ($e == '') || ($e == 'paypal@email.com') || ($e == 'paypal@emailaddress.com') || ($e == 'PAYPAL@EMAIL.COM') || ($e == 'PAYPAL@EMAILADDRESS.COM') || ($e == '-8-email-8-') || ($e == '-8-paypalemail-8-') || ($e == '-8-EMAIL-8-') || ($e == '-8-PAYPALEMAIL-8-') || ($e == '[={PAYPAL}]') || ($e == '[={PAYPALEMAIL}]') || ($e == 'zzzezzz') || ($e == 'zzzppezzz') ) $e = $ppe; $redirect = 'Location: '.$url0; Thanks in advance ~Rod PS: I don't code but I do kind of understand what it's doing.
-
If ($Hoff == 'Nelspruit') || ($Hoff == 'Hoedspruit') || ($Hoff == 'Klaserie') || ($Hoff == 'Bushbuck Ridge') || ($Hoff == 'Hazyview') || ($Hoff == 'Graskop') OR ($Hoff == 'Sabie') || ($Hoff == 'Lydenburg') || ($Hoff == 'Pilgrims Rest') || ($Hoff == 'Barberton') || ($Hoff == 'Waterval Boven') || ($Hoff == 'Komatipoort') || ($Hoff == 'Malelane') { $addon = $addon +2; } else { $addon = $addon -100; } PHP Parse error: syntax error, unexpected '||' (T_BOOLEAN_OR) in /home/lowveldn/public_html/control/publish.php on line 84 Can someone tell me what is wrong here please.