hi anybody can help me analyze this code..im not getting the correct output..

if(($origin=="NAIA 1" && $vehicle=="Small Car" && $zone=="Paranaque 2") && ($destination=="BACLARAN" || $destination=="SAN DIONISIO" || $destination=="BICUTAN INTERCHANGE" || $destination=="MULTINATIONAL VILLAGE" || $destination=="MOONWALK" || $destination=="SM SUCAT" || $destination=="DON BOSCO" || $destination=="SUN VALLEY" || $destination=="BETTER LIVING" || $destination=="MERVILLE" || $destination=="MARCELO GREEN" || $destination=="KALAYAAN" || $destination=="UNITED PARANAQUE"))
{
$rate=550;
}
if(($origin=="NAIA 1" && $vehicle=="Innova" &&  $zone=="Paranaque 2") && ($destination=="BACLARAN" || $destination=="SAN DIONISIO" || $destination=="BICUTAN INTERCHANGE" || $destination=="MULTINATIONAL VILLAGE" || $destination=="MOONWALK" || $destination=="SM SUCAT" || $destination=="DON BOSCO" || $destination=="SUN VALLEY" || $destination=="BETTER LIVING" || $destination=="MERVILLE" || $destination=="MARCELO GREEN" || $destination=="KALAYAAN" || $destination=="UNITED PARANAQUE"))

{
$rate=865;
}
if(($origin=="NAIA 1") && ($vehicle=="Van") && ($zone=="Paranaque 2") && ($destination=="BACLARAN" || $destination=="SAN DIONISIO" || $destination=="BICUTAN INTERCHANGE" || $destination=="MULTINATIONAL VILLAGE" || $destination=="MOONWALK" || $destination=="SM SUCAT" || $destination=="DON BOSCO" || $destination=="SUN VALLEY" || $destination=="BETTER LIVING" || $destination=="MERVILLE" || $destination=="MARCELO GREEN" || $destination=="KALAYAAN" || $destination=="UNITED PARANAQUE"))

{
$rate=1300;
}   

Hard to find the issue if you don't give examples of input and expected output.

Apart from that, if you put your values in an array, you can use in_array to simplify your if's.

Can you explain better?

The conditional statements are fine, I see just a difference in the last one where the first 3 variables are not grouped as the previous conditions, but that should not change the behaviour.

Also, I tested the conditions with:

$origin = 'NAIA 1';
$vehicle = 'Van'; # switching with 'Innova' and 'Small Car'
$zone = 'Paranaque 2';
$destination = 'BACLARAN';
$rate = 0;

and it works, the only problem I can think happens if the input is in lower case, for example if $destination is baclaran instead of BACLARAN then the conditions are not satisfied.

well basically the user will fill up a form. in that form theire is a texbox such as txtzone,txtvehicle,txtorigin and txtdestination..when submitted it must show the rate of the vehicle

e.g
if origin is equal to "NAIA 1" AND zone is equal to "Paranaque 1" AND vehicle is equal to "VIOS "AND destination is equal to "UNIWIDE" OR "COSTAL MALL" OR "DFP " THEN rate is 550

OUTPUT

zone= Paranaque 1
vehicle=VIOS
origin=NAIA 1
destination=DFP

RATE : PHP 550.00

but im having an error it display a wrong rate..

here is the complete code but it is really a mess so please bare with me

<?php  
// NAIA TRANSFER-------------------------------------------------------
if($origin=="NAIA 1" && $vehicle=="Vios" && $zone=="Inter NAIA" && $destination=="NAIA 2")
{
$rate=300;
}   
 if($origin=="NAIA 1" && $vehicle=="Innova" && $zone=="Inter NAIA" && $destination=="NAIA 2")
{
$rate=590;
}
if($origin=="NAIA 1" && $vehicle=="Van"  && $zone=="Inter NAIA" && $destination=="NAIA 2")
{
$rate=880;
}   
if($origin=="NAIA 1" && $vehicle=="Vios" && $zone=="Inter NAIA"  && $destination=="NAIA 3")
{
$rate=450;
}       
if($origin=="NAIA 1" && $vehicle=="Innova" && $zone=="Inter NAIA" && $destination=="NAIA 3")
{
$rate=775;
}   
if($origin=="NAIA 1" && $vehicle=="Van" && $zone=="Inter NAIA" && $destination=="NAIA 3")
{
$rate=1100;
}   
if($origin=="NAIA 1" && $vehicle=="Vios" && $zone=="Inter NAIA" && $destination=="OLD DOMESTIC")
{
$rate=380;
}   
if($origin=="NAIA 1" && $vehicle=="Innova" && $zone=="Inter NAIA" && $destination=="OLD DOMESTIC")
{
$rate=630;
}   
if($origin=="NAIA 1" && $vehicle=="Van" && $zone=="Inter NAIA" && $destination=="OLD DOMESTIC")
{
$rate=880;
}
//--------------------------PASAY 1-------------------- 
if(($origin=="NAIA 1" && $vehicle=="Vios" && $zone=="Pasay 1") && ($destination=="VILLAMOR AIRBASE" || $destination=="RIVERA" || $destination=="AIRMEN'S VILLAGE" || $destination=="PILDERA 1" || $destination=="PILDERA 2"))
{
$rate=500;
}
if(($origin=="NAIA 1" && $vehicle=="Innova" && $zone=="Pasay 1") && ($destination=="VILLAMOR AIRBASE" || $destination=="RIVERA" || $destination=="AIRMEN'S VILLAGE" || $destination=="PILDERA 1" || $destination=="PILDERA 2"))
{
$rate=750;
}
if(($origin=="NAIA 1" && $vehicle=="Van" && $zone=="Pasay 1") && ($destination=="VILLAMOR AIRBASE" || $destination=="RIVERA" || $destination=="AIRMEN'S VILLAGE" || $destination=="PILDERA 1" || $destination=="PILDERA 2"))
{
$rate=1125;
}
//--------------------------PASAY 2---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios" && $zone=="Pasay 2") && ($destination=="GSIS" || $destination=="SENATE" || $destination=="WTC" || $destination=="FB HARRISON" || $destination=="BSP" || $destination=="CENTURY PARK" || $destination=="RUSSIAN EMBASSY" || $destination=="VIETNAM EMBASSY" || $destination=="RIZAL MEMORIAL"))
{
$rate=550;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova" && $zone=="Pasay 2") && ($destination=="GSIS" || $destination=="SENATE" || $destination=="WTC" || $destination=="FB HARRISON" || $destination=="BSP" || $destination=="CENTURY PARK" || $destination=="RUSSIAN EMBASSY" || $destination=="VIETNAM EMBASSY" || $destination=="RIZAL MEMORIAL"))
{
$rate=865;
}
if(($origin=="NAIA 1" && $vehicle=="Van" && $zone=="Pasay 2") && ($destination=="GSIS" || $destination=="SENATE" || $destination=="WTC" || $destination=="FB HARRISON" || $destination=="BSP" || $destination=="CENTURY PARK" || $destination=="RUSSIAN EMBASSY" || $destination=="VIETNAM EMBASSY" || $destination=="RIZAL MEMORIAL"))
{
$rate=1300;
}
//--------------------------PASAY 3---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios" && $zone=="Pasay 3") && ($destination=="PICC" || $destination=="CCP COMPLEX" || $destination=="SOFITEL"))
{
$rate=610;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova" && $zone=="Pasay 3") && ($destination=="PICC" || $destination=="CCP COMPLEX" || $destination=="SOFITEL"))
{
$rate=995;
}
if(($origin=="NAIA 1" && $vehicle=="Van" && $zone=="Pasay 3") && ($destination=="PICC" || $destination=="CCP COMPLEX" || $destination=="SOFITEL"))
{
$rate=1500;
}
//----------------PARANAQUE 1-----------------------------
if(($origin=="NAIA 1" && $vehicle=="Vios" && $zone=="Paranaque 1") && ($destination=="TAMBO" || $destination=="UNIWIDE" || $destination=="COASTAL MALL" || $destination=="STO.NINO" || $destination=="DFP" || $destination=="CASINO FILIPINO" || $destination=="BALTAO"))

{
$rate=550;
}
if(($origin=="NAIA 1" && $vehicle=="Innova"  && $zone=="Paranaque 1") && ($destination=="TAMBO" || $destination=="UNIWIDE" || $destination=="COASTAL MALL" || $destination=="STO.NINO" || $destination=="DFP" || $destination=="CASINO FILIPINO" || $destination=="BALTAO"))

{
$rate=865;
}
if(($origin=="NAIA 1" && $vehicle=="Van" && $zone=="Paranaque 1") && ($destination=="TAMBO" || $destination=="UNIWIDE" || $destination=="COASTAL MALL" || $destination=="STO.NINO" || $destination=="DFP" || $destination=="CASINO FILIPINO" || $destination=="BALTAO"))

{
$rate=1300;
}   
//---------------------PARANAQUE 2---------------------------\
if(($origin=="NAIA 1" && $vehicle=="Vios" && $zone=="Paranaque 2") && ($destination=="BACLARAN" || $destination=="SAN DIONISIO" || $destination=="BICUTAN INTERCHANGE" || $destination=="MULTINATIONAL VILLAGE" || $destination=="MOONWALK" || $destination=="SM SUCAT" || $destination=="DON BOSCO" || $destination=="SUN VALLEY" || $destination=="BETTER LIVING" || $destination=="MERVILLE" || $destination=="MARCELO GREEN" || $destination=="KALAYAAN" || $destination=="UNITED PARANAQUE"))
{
$rate=550;
}
if(($origin=="NAIA 1" && $vehicle=="Innova" &&  $zone=="Paranaque 2") && ($destination=="BACLARAN" || $destination=="SAN DIONISIO" || $destination=="BICUTAN INTERCHANGE" || $destination=="MULTINATIONAL VILLAGE" || $destination=="MOONWALK" || $destination=="SM SUCAT" || $destination=="DON BOSCO" || $destination=="SUN VALLEY" || $destination=="BETTER LIVING" || $destination=="MERVILLE" || $destination=="MARCELO GREEN" || $destination=="KALAYAAN" || $destination=="UNITED PARANAQUE"))

{
$rate=865;
}
if(($origin=="NAIA 1") && ($vehicle=="Van") && ($zone=="Paranaque 2") && ($destination=="BACLARAN" || $destination=="SAN DIONISIO" || $destination=="BICUTAN INTERCHANGE" || $destination=="MULTINATIONAL VILLAGE" || $destination=="MOONWALK" || $destination=="SM SUCAT" || $destination=="DON BOSCO" || $destination=="SUN VALLEY" || $destination=="BETTER LIVING" || $destination=="MERVILLE" || $destination=="MARCELO GREEN" || $destination=="KALAYAAN" || $destination=="UNITED PARANAQUE"))

{
$rate=1300;
}   
//---------------------PARANAQUE 3---------------------------\
if(($origin=="NAIA 1" && $vehicle=="Vios") && ($destination=="SUCAT" || $destination=="MANILA MEMORIAL" || $destination=="LOYOLA MEMORIAL" || $destination=="BF HOMES" || $destination=="TAHANAN" || $destination=="CAMELLA" || $destination=="UPS 4" || $destination=="HILLSBOROUGH"))

{
$rate=610;
}
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="SUCAT" || $destination=="MANILA MEMORIAL" || $destination=="LOYOLA MEMORIAL" || $destination=="BF HOMES" || $destination=="TAHANAN" || $destination=="CAMELLA" || $destination=="UPS 4" || $destination=="HILLSBOROUGH"))

{
$rate=995;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="SUCAT" || $destination=="MANILA MEMORIAL" || $destination=="LOYOLA MEMORIAL" || $destination=="BF HOMES" || $destination=="TAHANAN" || $destination=="CAMELLA" || $destination=="UPS 4" || $destination=="HILLSBOROUGH"))

{
$rate=1500;
}   
//--------------------------LAS PINAS 1---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios" && $zon=="Las Pinas 1") && ($destination=="POBLACION" || $destination=="ILAYA" || $destination=="MANUYO DOS" || $destination=="BAMBOO ORGAN CHURCH"))
{
$rate=550;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="POBLACION" || $destination=="ILAYA" || $destination=="MANUYO DOS" || $destination=="BAMBOO ORGAN CHURCH"))
{
$rate=865;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="POBLACION" || $destination=="ILAYA" || $destination=="MANUYO DOS" || $destination=="BAMBOO ORGAN CHURCH"))
{
$rate=1300;
}   
//--------------------------LAS PINAS 2---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") && ($destination=="PULANG LUPA" || $destination=="ZAPOTE" || $destination=="PAMPLONA 1" || $destination=="PAMPLONA 2" || $destination=="TALON 1" || $destination=="TALON 3"))
{
$rate=610;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="PULANG LUPA" || $destination=="ZAPOTE" || $destination=="PAMPLONA 1" || $destination=="PAMPLONA 2" || $destination=="TALON 1" || $destination=="TALON 3"))
{
$rate=995;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="PULANG LUPA" || $destination=="ZAPOTE" || $destination=="PAMPLONA 1" || $destination=="PAMPLONA 2" || $destination=="TALON 1" ||  $destination=="TALON 3"))
{
$rate=1500;
}   
//--------------------------LAS PINAS 3---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") && ($destination=="PAMPLONA DOS" || $destination=="ALMANZA" || $destination=="TALON 2" || $destination=="TALON 4" || $destination=="TALON 5" || $destination=="SM SOUTHMALL"))
{
$rate=780;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="PAMPLONA DOS" || $destination=="ALMANZA" || $destination=="TALON 2" || $destination=="TALON 4" || $destination=="TALON 5" ||  $destination=="SM SOUTHMALL"))
{
$rate=1170;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="PAMPLONA DOS" || $destination=="ALMANZA" || $destination=="TALON 2" || $destination=="TALON 4" || $destination=="TALON 5" || $destination=="SM SOUTHMALL"))
{
$rate=1700;
}   
//--------------------------LAS PINAS 4---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") && ($destination=="PILAR VILLAGE" || $destination=="BF CLASSIC HOMES" || $destination=="SOLODIER'S HILLS" || $destination=="METROCOR" ))
{
$rate=990;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="PILAR VILLAGE" || $destination=="BF CLASSIC HOMES" || $destination=="SOLODIER'S HILLS" || $destination=="METROCOR" ))
{
$rate=1300;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="PILAR VILLAGE" || $destination=="BF CLASSIC HOMES" || $destination=="SOLODIER'S HILLS" || $destination=="METROCOR" ))
{
$rate=2000;
}   
//--------------------------MAKATI 1---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") && ($destination=="GLORIETTA" || $destination=="GREENBELT PARK" || $destination=="LEGASPI VILLAGE" || $destination=="MAGALLANES VILLAGE" ||  $destination=="DASMA VILLAGE" || $destination=="FORBES PARK-SOUTH"))
{
$rate=550;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") &&  ($destination=="GLORIETTA" || $destination=="GREENBELT PARK" || $destination=="LEGASPI VILLAGE" || $destination=="MAGALLANES VILLAGE" ||  $destination=="DASMA VILLAGE" || $destination=="FORBES PARK-SOUTH"))
{
$rate=865;
}
if(($origin=="NAIA 1" && $vehicle=="Van") &&  ($destination=="GLORIETTA" || $destination=="GREENBELT PARK" || $destination=="LEGASPI VILLAGE" || $destination=="MAGALLANES VILLAGE" ||  $destination=="DASMA VILLAGE" || $destination=="FORBES PARK-SOUTH"))
{
$rate=1300;
}
//--------------------------MAKATI 2---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") && ($destination=="GUADALUPE" || $destination=="SOUTH CEMBO" || $destination=="PITOGO" || $destination=="JP RIZAL" || $destination=="FORBES PARK-NORTH" || $destination=="MAKATI CITY HALL"  || $destination=="CARMON RACE TRACK" || $destination=="OLYMPIA" || $destination=="ROCKWELL" || $destination=="BEL-AIR"  ||$destination=="URDANETA" || $destination=="SAN ANTONIO VILLAGE" ||  $destination=="SUNRISE TOWER" || $destination=="PRIMETOWN TOWER"))
{
$rate=610;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="GUADALUPE" || $destination=="SOUTH CEMBO" || $destination=="PITOGO" || $destination=="JP RIZAL" || $destination=="FORBES PARK-NORTH" || $destination=="MAKATI CITY HALL"  || $destination=="CARMON RACE TRACK" || $destination=="OLYMPIA" || $destination=="ROCKWELL" || $destination=="BEL-AIR"  ||$destination=="URDANETA" || $destination=="SAN ANTONIO VILLAGE" ||  $destination=="SUNRISE TOWER" || $destination=="PRIMETOWN TOWER"))
{
$rate=995;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="GUADALUPE" || $destination=="SOUTH CEMBO" || $destination=="PITOGO" || $destination=="JP RIZAL" || $destination=="FORBES PARK-NORTH" || $destination=="MAKATI CITY HALL"  || $destination=="CARMON RACE TRACK" || $destination=="OLYMPIA" || $destination=="ROCKWELL" || $destination=="BEL-AIR"  ||$destination=="URDANETA" || $destination=="SAN ANTONIO VILLAGE" ||  $destination=="SUNRISE TOWER" || $destination=="PRIMETOWN TOWER"))
{
$rate=1500;
}
//--------------------------TAGUIG 1---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios" && $zone=="Taguig 1") && ($destination=="FTI" || $destination=="UPPER BICUTAN" || $destination=="WESTERN BICUTAN" || $destination=="FORT BONIFACIO" || $destination=="LAWTON AVENUE" || $destination=="SIGNAL VILLAGE" || $destination=="BAGONG TANYAG"))
{
$rate=550;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova" && $zone=="Taguig 1") && ($destination=="FTI" || $destination=="UPPER BICUTAN" || $destination=="WESTERN BICUTAN" || $destination=="FORT BONIFACIO" || $destination=="LAWTON AVENUE" || $destination=="SIGNAL VILLAGE" || $destination=="BAGONG TANYAG"))
{
$rate=865;
}
if(($origin=="NAIA 1" && $vehicle=="Van" && $zone=="Taguig 1") && ($destination=="FTI" || $destination=="UPPER BICUTAN" || $destination=="WESTERN BICUTAN" || $destination=="FORT BONIFACIO" || $destination=="LAWTON AVENUE" || $destination=="SIGNAL VILLAGE" || $destination=="BAGONG TANYAG"))
{
$rate=1300;
}
//--------------------------TAGUIG 2---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") && ($destination=="BCC" || $destination=="LOWER BICUTAN" || $destination=="BAGUMBAYAN" || $destination=="BAMBANG" || $destination=="HAGONOY" || $destination=="STA. ANA" || $destination=="TUKTUKAN"))
{
$rate=610;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="BCC" || $destination=="LOWER BICUTAN" || $destination=="BAGUMBAYAN" || $destination=="BAMBANG" || $destination=="HAGONOY" || $destination=="STA. ANA" || $destination=="TUKTUKAN"))
{
$rate=995;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="BCC" || $destination=="LOWER BICUTAN" || $destination=="BAGUMBAYAN" || $destination=="BAMBANG" || $destination=="HAGONOY" || $destination=="STA. ANA" || $destination=="TUKTUKAN"))
{
$rate=1500;
}
//--------------------------TAGUIG 3---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios" && $zone=="Taguig 3") && ($destination=="NAPINDAN" || $destination=="PALINGO" || $destination=="TIPAS" ))
{
$rate=780;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova" && $zone=="Taguig 3") && ($destination=="NAPINDAN" || $destination=="PALINGO" || $destination=="TIPAS" ))
{
$rate=1170;
}
if(($origin=="NAIA 1" && $vehicle=="Van" &&  $zone=="Taguig 3") && ($destination=="NAPINDAN" || $destination=="PALINGO" || $destination=="TIPAS" ))
{
$rate=1700;
}
//--------------------------MUNTINLUPA 1---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") && ($destination=="POSADAS VILLAGE" || $destination=="DON JUAN BAYVIEW" || $destination=="DONA ROSARIO BAYVIEW" || $destination=="DONA ROSARIO HEIGHTS" ))
{
$rate=610;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="POSADAS VILLAGE" || $destination=="DON JUAN BAYVIEW" || $destination=="DONA ROSARIO BAYVIEW" || $destination=="DONA ROSARIO HEIGHTS" ))
{
$rate=995;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="NAPINDAN" || $destination=="PALINGO" || $destination=="TIPAS" ))
{
$rate=1500;
}
//--------------------------MUNTINLUPA 2---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") && ($destination=="ATC" || $destination=="DSWD" || $destination=="ALABANG HILLS" || $destination=="BULI" || $destination=="CUPANG" || $destination=="RIZAL VILLAGE" ))
{
$rate=780;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="ATC" || $destination=="DSWD" || $destination=="ALABANG HILLS" || $destination=="BULI" || $destination=="CUPANG" || $destination=="RIZAL VILLAGE" ))
{
$rate=1170;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="ATC" || $destination=="DSWD" || $destination=="ALABANG HILLS" || $destination=="BULI" || $destination=="CUPANG" || $destination=="RIZAL VILLAGE" ))
{
$rate=1700;
}
//--------------------------MUNTINLUPA 3---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") && ($destination=="FESTIVAL MALL" || $destination=="METROPOLIS" || $destination=="BAYANAN" || $destination=="AYALA ALABANG 1"))
{
$rate=990;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="FESTIVAL MALL" || $destination=="METROPOLIS" || $destination=="BAYANAN" || $destination=="AYALA ALABANG 1"))
{
$rate=1300;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="FESTIVAL MALL" || $destination=="METROPOLIS" || $destination=="BAYANAN" || $destination=="AYALA ALABANG 1"))
{
$rate=2000;
}
//--------------------------MUNTINLUPA 4---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") && ($destination=="PUTATAN" || $destination=="POBLACION" || $destination=="NEW BILIB PRISON" || $destination=="CAMP SAMPAGUITA" || $destination=="CAMP BUKANG LIWAYWAY" || $destination=="AYALA ALABANG 2" || $destination=="KATARUNGAB VILLAGE"))
{
$rate=1000;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="PUTATAN" || $destination=="POBLACION" || $destination=="NEW BILIB PRISON" || $destination=="CAMP SAMPAGUITA" || $destination=="CAMP BUKANG LIWAYWAY" || $destination=="AYALA ALABANG 2" || $destination=="KATARUNGAB VILLAGE"))
{
$rate=1500;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="PUTATAN" || $destination=="POBLACION" || $destination=="NEW BILIB PRISON" || $destination=="CAMP SAMPAGUITA" || $destination=="CAMP BUKANG LIWAYWAY" || $destination=="AYALA ALABANG 2" || $destination=="KATARUNGAB VILLAGE"))
{
$rate=2250;
}
//--------------------------MUNTINLUPA 5---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") && ($destination=="SUSANA HEIGHTS" || $destination=="TUNASAN" || $destination=="PARK HOMES" || $destination=="CAMELLA SOUTH" || $destination=="VILLA CAROLINA SUBD" || $destination=="REFEREDOR TEACHER'S VILLAGE" || $destination=="VICTORIA HOMES"))
{
$rate=1130;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="SUSANA HEIGHTS" || $destination=="TUNASAN" || $destination=="PARK HOMES" || $destination=="CAMELLA SOUTH" || $destination=="VILLA CAROLINA SUBD" || $destination=="REFEREDOR TEACHER'S VILLAGE" || $destination=="VICTORIA HOMES"))
{
$rate=1695;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="SUSANA HEIGHTS" || $destination=="TUNASAN" || $destination=="PARK HOMES" || $destination=="CAMELLA SOUTH" || $destination=="VILLA CAROLINA SUBD" || $destination=="REFEREDOR TEACHER'S VILLAGE" || $destination=="VICTORIA HOMES"))
{
$rate=2600;
}
//--------------------------MANDALUYONG---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") && ($destination=="ADB" || $destination=="SM MEGAMALL" || $destination=="EDSA SHANGRILA" || $destination=="STAR MALL" || $destination=="MANDALUYONG CITY HALL"))
{
$rate=780;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="ADB" || $destination=="SM MEGAMALL" || $destination=="EDSA SHANGRILA" || $destination=="STAR MALL" || $destination=="MANDALUYONG CITY HALL"))
{
$rate=1170;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="ADB" || $destination=="SM MEGAMALL" || $destination=="EDSA SHANGRILA" || $destination=="STAR MALL" || $destination=="MANDALUYONG CITY HALL"))
{
$rate=1700;
}
//--------------------------PATEROS---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") && ($destination=="STA.ANA" || $destination=="SAN PEDRO" || $destination=="POBLACION" || $destination=="AGUHO" || $destination=="MARTINEZ DEL 96"))
{
$rate=610;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="STA.ANA" || $destination=="SAN PEDRO" || $destination=="POBLACION" || $destination=="AGUHO" || $destination=="MARTINEZ DEL 96"))
{
$rate=995;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="STA.ANA" || $destination=="SAN PEDRO" || $destination=="POBLACION" || $destination=="AGUHO" || $destination=="MARTINEZ DEL 96"))
{
$rate=1500;
}   
//--------------------------PASIG 1---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") && ($destination=="ULTRA" || $destination=="VALLE VERDE 1" || $destination=="BAGONG ILOG" || $destination=="SAN JOAQUIN" || $destination=="PINAGBUHATAN" || $destination=="KALAWAAN" || $destination=="PASIG CITY HALL"))
{
$rate=780;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="ULTRA" || $destination=="VALLE VERDE 1" || $destination=="BAGONG ILOG" || $destination=="SAN JOAQUIN" || $destination=="PINAGBUHATAN" || $destination=="KALAWAAN" || $destination=="PASIG CITY HALL"))
{
$rate=1170;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="ULTRA" || $destination=="VALLE VERDE 1" || $destination=="BAGONG ILOG" || $destination=="SAN JOAQUIN" || $destination=="PINAGBUHATAN" || $destination=="KALAWAAN" || $destination=="PASIG CITY HALL"))
{
$rate=1700;
}
//--------------------------PASIG 2---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") && ($destination=="ROSARIO" || $destination=="MAYBUNGA" || $destination=="MERALCO" || $destination=="VALLE VERDE 2" || $destination=="VALLE VERDE 3" || $destination=="VALLE VERDE 4" || $destination=="VALLE VERDE 5" || $destination=="VALLE VERDE 6"))
{
$rate=990;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="ROSARIO" || $destination=="MAYBUNGA" || $destination=="MERALCO" || $destination=="VALLE VERDE 2" || $destination=="VALLE VERDE 3" || $destination=="VALLE VERDE 4" || $destination=="VALLE VERDE 5" || $destination=="VALLE VERDE 6"))
{
$rate=1300;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="ROSARIO" || $destination=="MAYBUNGA" || $destination=="MERALCO" || $destination=="VALLE VERDE 2" || $destination=="VALLE VERDE 3" || $destination=="VALLE VERDE 4" || $destination=="VALLE VERDE 5" || $destination=="VALLE VERDE 6"))
{
$rate=2000;
}   
//--------------------------PASIG 3---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") && ($destination=="SANTOLAN" || $destination=="MANGGAHAN" || $destination=="STA.LUCIA" || $destination=="EVER GOTESCO" || $destination=="GREEN PARK"))
{
$rate=1000;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="SANTOLAN" || $destination=="MANGGAHAN" || $destination=="STA.LUCIA" || $destination=="EVER GOTESCO" || $destination=="GREEN PARK"))
{
$rate=1500;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="SANTOLAN" || $destination=="MANGGAHAN" || $destination=="STA.LUCIA" || $destination=="EVER GOTESCO" || $destination=="GREEN PARK"))
{
$rate=2250;
}   
//--------------------------PASIG 4---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") && ($destination=="DELA PENA" || $destination=="KARANAGALAN VILLAGE" || $destination=="METRO EAST ROBINSON'S PLACE"))
{
$rate=1300;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="DELA PENA" || $destination=="KARANAGALAN VILLAGE" || $destination=="METRO EAST ROBINSON'S PLACE"))
{
$rate=1695;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="DELA PENA" || $destination=="KARANAGALAN VILLAGE" || $destination=="METRO EAST ROBINSON'S PLACE"))
{
$rate=2600;
}
//--------------------------QUEZON 1---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") && ($destination=="SANTOS" || $destination=="SM CENTERPOINT" || $destination=="NEW MANILA" || $destination=="CAMP CRAME" || $destination=="CAMP AGUINALDO" || $destination=="GREEN MEADOWS" || $destination=="CORINTHIAN GARDENS" || $destination=="UGONG NORTE"))
{
$rate=990;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="SANTOS" || $destination=="SM CENTERPOINT" || $destination=="NEW MANILA" || $destination=="CAMP CRAME" || $destination=="CAMP AGUINALDO" || $destination=="GREEN MEADOWS" || $destination=="CORINTHIAN GARDENS" || $destination=="UGONG NORTE"))
{
$rate=1300;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="SANTOS" || $destination=="SM CENTERPOINT" || $destination=="NEW MANILA" || $destination=="CAMP CRAME" || $destination=="CAMP AGUINALDO" || $destination=="GREEN MEADOWS" || $destination=="CORINTHIAN GARDENS" || $destination=="UGONG NORTE"))
{
$rate=2000;
}
//--------------------------QUEZON 2---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") && ($destination=="LA LOMA" || $destination=="AMORANTO" || $destination=="KAMIAS" || $destination=="KAMUNING" || $destination=="SFDM" || $destination=="CUBAO ARANETA" || $destination=="STA.MESA HEIGHTS" || $destination=="PROJECT 2" || $destination=="PROJECT 3" || $destination=="PROJECT 4" || $destination=="WHITE PLAINS" || $destination=="TOMAS MORATO" || $destination=="LIBIS" || $destination=="BANAWE" || $destination=="WELCOME ROTUNDA" || $destination=="GALAS" || $destination=="SCOUTS" || $destination=="SACRED HEART"))
{
$rate=1000;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="LA LOMA" || $destination=="AMORANTO" || $destination=="KAMIAS" || $destination=="KAMUNING" || $destination=="SFDM" || $destination=="CUBAO ARANETA" || $destination=="STA.MESA HEIGHTS" || $destination=="PROJECT 2" || $destination=="PROJECT 3" || $destination=="PROJECT 4" || $destination=="WHITE PLAINS" || $destination=="TOMAS MORATO" || $destination=="LIBIS" || $destination=="BANAWE" || $destination=="WELCOME ROTUNDA" || $destination=="GALAS" || $destination=="SCOUTS" || $destination=="SACRED HEART"))
{
$rate=1500;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="LA LOMA" || $destination=="AMORANTO" || $destination=="KAMIAS" || $destination=="KAMUNING" || $destination=="SFDM" || $destination=="CUBAO ARANETA" || $destination=="STA.MESA HEIGHTS" || $destination=="PROJECT 2" || $destination=="PROJECT 3" || $destination=="PROJECT 4" || $destination=="WHITE PLAINS" || $destination=="TOMAS MORATO" || $destination=="LIBIS" || $destination=="BANAWE" || $destination=="WELCOME ROTUNDA" || $destination=="GALAS" || $destination=="SCOUTS" || $destination=="SACRED HEART"))
{
$rate=2250;
}
//--------------------------QUEZON 3---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") && ($destination=="MUNOZ" || $destination=="PROJECT 6" || $destination=="PROJECT 7" || $destination=="PROJECT 8" || $destination=="BAGONG BANTAY" || $destination=="BAGONG PAG-ASA" || $destination=="BALINTAWAK" || $destination=="BAGONG BATO" || $destination=="BALINGASI" || $destination=="DAMAR" || $destination=="APOLONIO SAMSON" || $destination=="SAN ANTONIO" || $destination=="PALTOK" || $destination=="STO.CRISTO" || $destination=="SIKATUNA" || $destination=="DILIMAN" || $destination=="QMC MEMORIAL CENTER" || $destination=="SM WEST" || $destination=="UP VILLAGE" || $destination=="TEACHER'S VILLAGE" || $destination=="KRUS NA LIGAS" || $destination=="UP CAMPUS" || $destination=="HEART CENTER" || $destination=="KIDNEY INSTITUTE" || $destination=="LOYOLA HEIGHTS" || $destination=="PARK & WILDLIFE"))
{
$rate=1130;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="MUNOZ" || $destination=="PROJECT 6" || $destination=="PROJECT 7" || $destination=="PROJECT 8" || $destination=="BAGONG BANTAY" || $destination=="BAGONG PAG-ASA" || $destination=="BALINTAWAK" || $destination=="BAGONG BATO" || $destination=="BALINGASI" || $destination=="DAMAR" || $destination=="APOLONIO SAMSON" || $destination=="SAN ANTONIO" || $destination=="PALTOK" || $destination=="STO.CRISTO" || $destination=="SIKATUNA" || $destination=="DILIMAN" || $destination=="QMC MEMORIAL CENTER" || $destination=="SM WEST" || $destination=="UP VILLAGE" || $destination=="TEACHER'S VILLAGE" || $destination=="KRUS NA LIGAS" || $destination=="UP CAMPUS" || $destination=="HEART CENTER" || $destination=="KIDNEY INSTITUTE" || $destination=="LOYOLA HEIGHTS" || $destination=="PARK & WILDLIFE"))
{
$rate=1695;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="MUNOZ" || $destination=="PROJECT 6" || $destination=="PROJECT 7" || $destination=="PROJECT 8" || $destination=="BAGONG BANTAY" || $destination=="BAGONG PAG-ASA" || $destination=="BALINTAWAK" || $destination=="BAGONG BATO" || $destination=="BALINGASI" || $destination=="DAMAR" || $destination=="APOLONIO SAMSON" || $destination=="SAN ANTONIO" || $destination=="PALTOK" || $destination=="STO.CRISTO" || $destination=="SIKATUNA" || $destination=="DILIMAN" || $destination=="QMC MEMORIAL CENTER" || $destination=="SM WEST" || $destination=="UP VILLAGE" || $destination=="TEACHER'S VILLAGE" || $destination=="KRUS NA LIGAS" || $destination=="UP CAMPUS" || $destination=="HEART CENTER" || $destination=="KIDNEY INSTITUTE" || $destination=="LOYOLA HEIGHTS" || $destination=="PARK & WILDLIFE"))
{
$rate=2600;
}
//-------------------------QUEZON 4--------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") && ($destination=="OLD BALARA" || $destination=="CULIAT" || $destination=="BAHAY TORO" || $destination=="TANDANG SORA" || $destination=="SANGANDAAN" || $destination=="BAGONG BARRIO EAST" || $destination=="TALIPAPA" || $destination=="BAESA" || $destination=="VILLA BEATRIZ SUBD"))
{
$rate=1350;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="OLD BALARA" || $destination=="CULIAT" || $destination=="BAHAY TORO" || $destination=="TANDANG SORA" || $destination=="SANGANDAAN" || $destination=="BAGONG BARRIO EAST" || $destination=="TALIPAPA" || $destination=="BAESA" || $destination=="VILLA BEATRIZ SUBD"))
{
$rate=2000;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="OLD BALARA" || $destination=="CULIAT" || $destination=="BAHAY TORO" || $destination=="TANDANG SORA" || $destination=="SANGANDAAN" || $destination=="BAGONG BARRIO EAST" || $destination=="TALIPAPA" || $destination=="BAESA" || $destination=="VILLA BEATRIZ SUBD"))
{
$rate=3000;
}
//--------------------------QUEZON 5---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") && ($destination=="SAUYO" || $destination=="MANGGAHAN" || $destination=="HOLY SPIRIT" || $destination=="FAIRVIEW" || $destination=="BAGBAG" || $destination=="STA.LUCIA" || $destination=="SAN BARTOLOME" || $destination=="EVER COMMONWEALTH" || $destination=="COA"))
{
$rate=1550;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="SAUYO" || $destination=="MANGGAHAN" || $destination=="HOLY SPIRIT" || $destination=="FAIRVIEW" || $destination=="BAGBAG" || $destination=="STA.LUCIA" || $destination=="SAN BARTOLOME" || $destination=="EVER COMMONWEALTH" || $destination=="COA"))
{
$rate=2350;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="SAUYO" || $destination=="MANGGAHAN" || $destination=="HOLY SPIRIT" || $destination=="FAIRVIEW" || $destination=="BAGBAG" || $destination=="STA.LUCIA" || $destination=="SAN BARTOLOME" || $destination=="EVER COMMONWEALTH" || $destination=="COA"))
{
$rate=3525;
}   
//--------------------------QUEZON 6---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") && ($destination=="CAPRI" || $destination=="SAN AGUSTIN" || $destination=="COMMONWEALTH PAYATAS" || $destination=="STA.MONICA" || $destination=="SITIO GAO" || $destination=="PASON" || $destination=="PUTIK" || $destination=="GULOD" || $destination=="LA MESA DAM" || $destination=="BAGONG SILANG"))
{
$rate=1900;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="CAPRI" || $destination=="SAN AGUSTIN" || $destination=="COMMONWEALTH PAYATAS" || $destination=="STA.MONICA" || $destination=="SITIO GAO" || $destination=="PASON" || $destination=="PUTIK" || $destination=="GULOD" || $destination=="LA MESA DAM" || $destination=="BAGONG SILANG"))
{
$rate=2850;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="CAPRI" || $destination=="SAN AGUSTIN" || $destination=="COMMONWEALTH PAYATAS" || $destination=="STA.MONICA" || $destination=="SITIO GAO" || $destination=="PASON" || $destination=="PUTIK" || $destination=="GULOD" || $destination=="LA MESA DAM" || $destination=="BAGONG SILANG"))
{
$rate=4275;
}
//--------------------------QUEZON 7---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios" && $zone=="Quezon 7") && ($destination=="REGALADO HIWAY" || $destination=="PASONG PUTTING" || $destination=="KALIGAYAHAN" || $destination=="COMMONWEALTH"))
{
$rate=2200;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova" && $zone=="Quezon 7") && ($destination=="REGALADO HIWAY" || $destination=="PASONG PUTTING" || $destination=="KALIGAYAHAN" || $destination=="COMMONWEALTH"))
{
$rate=3280;
}
if(($origin=="NAIA 1" && $vehicle=="Van" && $zone=="Quezon 7") && ($destination=="REGALADO HIWAY" || $destination=="PASONG PUTTING" || $destination=="KALIGAYAHAN" || $destination=="COMMONWEALTH"))
{
$rate=4900;
}   
//--------------------------SAN JUAN---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") && ($destination=="GREENHILLS" || $destination=="WACKWACK" || $destination=="LITTLE BAGUIO" || $destination=="PINAGLABANAN"))
{
$rate=990;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="GREENHILLS" || $destination=="WACKWACK" || $destination=="LITTLE BAGUIO" || $destination=="PINAGLABANAN"))
{
$rate=1300;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="GREENHILLS" || $destination=="WACKWACK" || $destination=="LITTLE BAGUIO" || $destination=="PINAGLABANAN"))
{
$rate=2000;
}   
//--------------------------MANILA 1---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") && ($destination=="HARRISON PLAZA" || $destination=="MALATE" || $destination=="BSP" || $destination=="FOLK ARTS" || $destination=="CCP COMPLEX" || $destination=="SOFITEL"))
{
$rate=610;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="HARRISON PLAZA" || $destination=="MALATE" || $destination=="BSP" || $destination=="FOLK ARTS" || $destination=="CCP COMPLEX" || $destination=="SOFITEL"))
{
$rate=995;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="HARRISON PLAZA" || $destination=="MALATE" || $destination=="BSP" || $destination=="FOLK ARTS" || $destination=="CCP COMPLEX" || $destination=="SOFITEL"))
{
$rate=1500;
}
//--------------------------MANILA 2---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") && ($destination=="ERMITA" || $destination=="INTRAMUROS" || $destination=="PACO" || $destination=="PANDACAN" || $destination=="PUNTA" || $destination=="BACOOD" || $destination=="STA.ANA" || $destination=="MALACANAN" || $destination=="SAN MIGUEL" || $destination=="LAWTON" || $destination=="MANILA CITY HALL" || $destination=="MANILA HOTEL"))
{
$rate=780;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="ERMITA" || $destination=="INTRAMUROS" || $destination=="PACO" || $destination=="PANDACAN" || $destination=="PUNTA" || $destination=="BACOOD" || $destination=="STA.ANA" || $destination=="MALACANAN" || $destination=="SAN MIGUEL" || $destination=="LAWTON" || $destination=="MANILA CITY HALL" || $destination=="MANILA HOTEL"))
{
$rate=1170;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="ERMITA" || $destination=="INTRAMUROS" || $destination=="PACO" || $destination=="PANDACAN" || $destination=="PUNTA" || $destination=="BACOOD" || $destination=="STA.ANA" || $destination=="MALACANAN" || $destination=="SAN MIGUEL" || $destination=="LAWTON" || $destination=="MANILA CITY HALL" || $destination=="MANILA HOTEL"))
{
$rate=1700;
}   
//--------------------------MANILA 3---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") &&  ($destination=="TUTUBAN" || $destination=="DIVISORIA" || $destination=="BINONDO" || $destination=="QUIAPO" || $destination=="STA. CRUZ" || $destination=="STA. MESA" || $destination=="PIER SOUTH" || $destination=="NORTH HARBOR"|| $destination=="CUSTOMS" || $destination=="SAN NICOLAS"))
{
$rate=990;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") &&  ($destination=="TUTUBAN" || $destination=="DIVISORIA" || $destination=="BINONDO" || $destination=="QUIAPO" || $destination=="STA. CRUZ" || $destination=="STA. MESA" || $destination=="PIER SOUTH" || $destination=="NORTH HARBOR"|| $destination=="CUSTOMS" || $destination=="SAN NICOLAS")){
$rate=1300;
}
if(($origin=="NAIA 1" && $vehicle=="Van") &&  ($destination=="TUTUBAN" || $destination=="DIVISORIA" || $destination=="BINONDO" || $destination=="QUIAPO" || $destination=="STA. CRUZ" || $destination=="STA. MESA" || $destination=="PIER SOUTH" || $destination=="NORTH HARBOR"|| $destination=="CUSTOMS" || $destination=="SAN NICOLAS"))
{
$rate=2000;
}   
//--------------------------MANILA 4---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") &&  ($destination=="TONDO" || $destination=="SAMPALOC" || $destination=="NOTH CHINESE CEMENTERY" ))
{
$rate=1000;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") &&  ($destination=="TONDO" || $destination=="SAMPALOC" || $destination=="NOTH CHINESE CEMENTERY" ))
{
$rate=1500;
}
if(($origin=="NAIA 1" && $vehicle=="Van") &&  ($destination=="TONDO" || $destination=="SAMPALOC" || $destination=="NOTH CHINESE CEMENTERY" ))
{
$rate=2250;
}   
//--------------------------MARIKINA 1---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") &&  ($destination=="INDUSTRIAL VALLEY"))
{
$rate=1000;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") &&  ($destination=="INDUSTRIAL VALLEY"))
{
$rate=1500;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="INDUSTRIAL VALLEY"))
{
$rate=2250;
}       
//--------------------------MARIKINA 2---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") &&  ($destination=="BARANGKA" || $destination=="RIVERBANK" || $destination=="TANONG" || $destination=="J DELA PENA" || $destination=="CALUMPANG"))
{
$rate=1130;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") &&  ($destination=="BARANGKA" || $destination=="RIVERBANK" || $destination=="TANONG" || $destination=="J DELA PENA" || $destination=="CALUMPANG"))
{
$rate=1695;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="BARANGKA" || $destination=="RIVERBANK" || $destination=="TANONG" || $destination=="J DELA PENA" ||$destination=="CALUMPANG"))
{
$rate=2600;
}   
//--------------------------MARIKINA 3--------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") &&  ($destination=="MARIKINA HEIGHTS" || $destination=="CONCEPCION 1" || $destination=="CONCEPCION 2" || $destination=="MALANDAY" || $destination=="LAMUAN"))
{
$rate=1350;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") &&  ($destination=="MARIKINA HEIGHTS" || $destination=="CONCEPCION 1" || $destination=="CONCEPCION 2" || $destination=="MALANDAY" || $destination=="LAMUAN"))
{
$rate=2000;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="MARIKINA HEIGHTS" || $destination=="CONCEPCION 1" || $destination=="CONCEPCION 2" || $destination=="MALANDAY" || $destination=="LAMUAN"))
{
$rate=3000;
}   
//--------------------------MARIKINA 4--------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") &&  ($destination=="PARANG" || $destination=="NANGKA"))
{
$rate=1550;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") &&  ($destination=="PARANG" || $destination=="NANGKA"))
{
$rate=2350;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="PARANG" || $destination=="NANGKA"))
{
$rate=3525;
}   
//-------------------------CALOOCAN 1--------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") &&  ($destination=="MAYPAJO" || $destination=="OBRERO" || $destination=="GRACE PARK" || $destination=="SANGANDAAN" || $destination=="MONUMENTO" || $destination=="BAGONG BARRIO WEST"))
{
$rate=1130;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") &&  ($destination=="MAYPAJO" || $destination=="OBRERO" || $destination=="GRACE PARK" || $destination=="SANGANDAAN" || $destination=="MONUMENTO" || $destination=="BAGONG BARRIO WEST"))
{
$rate=1695;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="MAYPAJO" || $destination=="OBRERO" || $destination=="GRACE PARK" || $destination=="SANGANDAAN" || $destination=="MONUMENTO" || $destination=="BAGONG BARRIO WEST"))
{
$rate=2600;
}   
//-------------------------CALOOCAN 2--------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") &&  ($destination=="MAYPAJO" || $destination=="OBRERO" || $destination=="GRACE PARK" || $destination=="SANGANDAAN" || $destination=="MONUMENTO" || $destination=="BAGONG BARRIO WEST"))
{
$rate=1350;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") &&  ($destination=="STA.QUITERIA" || $destination=="TALIPAPA" || $destination=="BAESA ROAD"))
{
$rate=2000;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="STA.QUITERIA" || $destination=="TALIPAPA" || $destination=="BAESA ROAD"))
{
$rate=3000;
}   
//-------------------------CALOOCAN  NORTH 1--------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") &&  ($destination=="BAYBAGUIN" || $destination=="KAYBIGA"))
{
$rate=1900;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") &&  ($destination=="BAYBAGUIN" || $destination=="KAYBIGA"))
{
$rate=2850;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="BAYBAGUIN" || $destination=="KAYBIGA"))
{
$rate=4275;
}
//-------------------------CALOOCAN  NORTH 2--------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") &&  ($destination=="BAGUMBONG" || $destination=="DEPARO" || $destination=="LLANO"))
{
$rate=2200;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") &&  ($destination=="BAGUMBONG" || $destination=="DEPARO" || $destination=="LLANO"))
{
$rate=3280;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="BAGUMBONG" || $destination=="DEPARO" || $destination=="LLANO"))
{
$rate=4900;
}
//-------------------------CALOOCAN  NORTH 3--------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") &&  ($destination=="CAMARIN" || $destination=="BAGONG SILANG" || $destination=="TALA"))
{
$rate=2530;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") &&  ($destination=="CAMARIN" || $destination=="BAGONG SILANG" || $destination=="TALA"))
{
$rate=3795;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="CAMARIN" || $destination=="BAGONG SILANG" || $destination=="TALA"))
{
$rate=5700;
}   
//-------------------------MALABON 1--------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") &&  ($destination=="DAGAT DAGATAN"))
{
$rate=1130;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") &&  ($destination=="DAGAT DAGATAN"))
{
$rate=1695;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="DAGAT DAGATAN"))
{
$rate=2600;
}
//-------------------------MALABON 2--------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") &&  ($destination=="PORTRERO" || $destination=="TUGATOG" || $destination=="ACACIA" || $destination=="NIUGAN" || $destination=="LONGOS" || $destination=="MUZON" || $destination=="TINAJEROS" || $destination=="CATMON" || $destination=="MAYLISO" || $destination=="FLORES" || $destination=="SAN AGUSTIN" || $destination=="CONCEPCION" || $destination=="TANONG BABA" || $destination=="BARITAN" || $destination=="BAYAN BAYANAN"))
{
$rate=1350;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") &&  ($destination=="PORTRERO" || $destination=="TUGATOG" || $destination=="ACACIA" || $destination=="NIUGAN" || $destination=="LONGOS" || $destination=="MUZON" || $destination=="TINAJEROS" || $destination=="CATMON" || $destination=="MAYLISO" || $destination=="FLORES" || $destination=="SAN AGUSTIN" || $destination=="CONCEPCION" || $destination=="TANONG BABA" || $destination=="BARITAN" || $destination=="BAYAN BAYANAN"))
{
$rate=2000;
}
if(($origin=="NAIA 1" && $vehicle=="Van") && ($destination=="PORTRERO" || $destination=="TUGATOG" || $destination=="ACACIA" || $destination=="NIUGAN" || $destination=="LONGOS" || $destination=="MUZON" || $destination=="TINAJEROS" || $destination=="CATMON" || $destination=="MAYLISO" || $destination=="FLORES" || $destination=="SAN AGUSTIN" || $destination=="CONCEPCION" || $destination=="TANONG BABA" || $destination=="BARITAN" || $destination=="BAYAN BAYANAN"))
{
$rate=3000;
}   
//-------------------------MALABON 3--------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") &&  ($destination=="SANTOLAN" || $destination=="PANGHULO" || $destination=="DAMPALIT" || $destination=="HULONG DAGAT"))
{
$rate=1550;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="SANTOLAN" || $destination=="PANGHULO" || $destination=="DAMPALIT" || $destination=="HULONG DAGAT"))
{
$rate=2350;
}
if(($origin=="NAIA 1" && $vehicle=="Van") &&  ($destination=="SANTOLAN" || $destination=="PANGHULO" || $destination=="DAMPALIT" || $destination=="HULONG DAGAT"))
{
$rate=3525;
}   
//-------------------------NAVOTAS 1---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") &&  ($destination=="NORTH BAY BLVD" || $destination=="BANGKULASI"))
{
$rate=1130;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="NORTH BAY BLVD" || $destination=="BANGKULASI"))
{
$rate=1695;
}
if(($origin=="NAIA 1" && $vehicle=="Van") &&  ($destination=="NORTH BAY BLVD" || $destination=="BANGKULASI"))
{
$rate=2600;
}
//-------------------------NAVOTAS 2---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") &&  ($destination=="DAANG HARU" || $destination=="SAN ROQUE" || $destination=="SAN JOSE" || $destination=="SIPAK ALMACEN" || $destination=="NAVOTAS WEST"))
{
$rate=1350;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="DAANG HARU" || $destination=="SAN ROQUE" || $destination=="SAN JOSE" || $destination=="SIPAK ALMACEN" || $destination=="NAVOTAS WEST"))
{
$rate=2000;
}
if(($origin=="NAIA 1" && $vehicle=="Van") &&  ($destination=="DAANG HARU" || $destination=="SAN ROQUE" || $destination=="SAN JOSE" || $destination=="SIPAK ALMACEN" || $destination=="NAVOTAS WEST"))
{
$rate=3000;
}   
//-------------------------NAVOTAS 3---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") &&  ($destination=="TANGOS" || $destination=="TANZA"))
{
$rate=1550;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="TANGOS" || $destination=="TANZA"))
{
$rate=2350;
}
if(($origin=="NAIA 1" && $vehicle=="Van") &&  ($destination=="TANGOS" || $destination=="TANZA"))
{
$rate=3525;
}   
//-------------------------VALENZUELA 1---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") &&  ($destination=="MARULAS" || $destination=="KARUHATAN"))
{
$rate=1350;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="MARULAS" || $destination=="KARUHATAN"))
{
$rate=2000;
}
if(($origin=="NAIA 1" && $vehicle=="Van") &&  ($destination=="MARULAS" || $destination=="KARUHATAN"))
{
$rate=3000;
}
//-------------------------VALENZUELA 2---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") &&  ($destination=="GEN T DE LEON" || $destination=="MAPULANG LUPA" || $destination=="PASO DE BLAS" || $destination=="MAYSAN" || $destination=="DALANDANAN" || $destination=="RINCON" || $destination=="ARKONG BATO" || $destination=="MALINTA"))
{
$rate=1550;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="GEN T DE LEON" || $destination=="MAPULANG LUPA" || $destination=="PASO DE BLAS" || $destination=="MAYSAN" || $destination=="DALANDANAN" || $destination=="RINCON" || $destination=="ARKONG BATO" || $destination=="MALINTA"))
{
$rate=2350;
}
if(($origin=="NAIA 1" && $vehicle=="Van") &&  ($destination=="GEN T DE LEON" || $destination=="MAPULANG LUPA" || $destination=="PASO DE BLAS" || $destination=="MAYSAN" || $destination=="DALANDANAN" || $destination=="RINCON" || $destination=="ARKONG BATO" || $destination=="MALINTA"))
{
$rate=3525;
}
//-------------------------VALENZUELA 3---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") &&  ($destination=="BALANGKAS" || $destination=="POLO" || $destination=="PALASAN" || $destination=="POBLACION" || $destination=="BISIG" || $destination=="MABOLO" || $destination=="POSOLO" || $destination=="MALANDAY" || $destination=="VIENTE REALES" || $destination=="LINGUNAN" || $destination=="CANUMAY" || $destination=="BAGBAGUIN" || $destination=="CANUMAY EAST" || $destination=="LAWANG BATO"))
{
$rate=1300;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="BALANGKAS" || $destination=="POLO" || $destination=="PALASAN" || $destination=="POBLACION" || $destination=="BISIG" || $destination=="MABOLO" || $destination=="POSOLO" || $destination=="MALANDAY" || $destination=="VIENTE REALES" || $destination=="LINGUNAN" || $destination=="CANUMAY" || $destination=="BAGBAGUIN" || $destination=="CANUMAY EAST" || $destination=="LAWANG BATO"))
{
$rate=2850;
}
if(($origin=="NAIA 1" && $vehicle=="Van") &&  ($destination=="BALANGKAS" || $destination=="POLO" || $destination=="PALASAN" || $destination=="POBLACION" || $destination=="BISIG" || $destination=="MABOLO" || $destination=="POSOLO" || $destination=="MALANDAY" || $destination=="VIENTE REALES" || $destination=="LINGUNAN" || $destination=="CANUMAY" || $destination=="BAGBAGUIN" || $destination=="CANUMAY EAST" || $destination=="LAWANG BATO"))
{
$rate=4275;
}   
//-------------------------VALENZUELA 4---------------------
if(($origin=="NAIA 1" && $vehicle=="Vios") &&  ($destination=="BIGNAY" || $destination=="PUNTURIN"))
{
$rate=2200;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova") && ($destination=="BIGNAY" || $destination=="PUNTURIN"))
{
$rate=3280;
}
if(($origin=="NAIA 1" && $vehicle=="Van") &&  ($destination=="BIGNAY" || $destination=="PUNTURIN"))
{
$rate=4900;
}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
?>

@ cerial: well in the lower or upper case issue its not really a problem because i use jquery to make all the input text all uppercase..the weard thing is the other condtion is working fine..

here is an example code that show the correct rate

if(($origin=="NAIA 1" && $vehicle=="Vios" && $zone=="Quezon 7") && ($destination=="REGALADO HIWAY" || $destination=="PASONG PUTTING" || $destination=="KALIGAYAHAN" || $destination=="COMMONWEALTH"))
{
$rate=2200;
}   
if(($origin=="NAIA 1" && $vehicle=="Innova" && $zone=="Quezon 7") && ($destination=="REGALADO HIWAY" || $destination=="PASONG PUTTING" || $destination=="KALIGAYAHAN" || $destination=="COMMONWEALTH"))
{
$rate=3280;
}
if(($origin=="NAIA 1" && $vehicle=="Van" && $zone=="Quezon 7") && ($destination=="REGALADO HIWAY" || $destination=="PASONG PUTTING" || $destination=="KALIGAYAHAN" || $destination=="COMMONWEALTH"))
{
$rate=4900;
}

but when it comes to Paranaque 1 its not working properly.. i already try to scan and find a bug in my code but i cant find any..

The only problem I see is at line 126 where $zon is not defined, it should be $zone. A part from that I can't see anything wrong. The $zone is always based on a form input? Maybe the script doesn't get the right value from the form..

yeah i miss that one..gonna check if its work...as for the $zone yeah it is base on the input of the user. well basically the user will choose from a dropdown menu to get the zone..

embarrassing..it took me 1 whole day to figure out whats the problem with the code and with no avail in finding any..just a moment ago i figured out that i put the same price in twice..thats explain why im getting wrong output..:(

no problem, that happens.. bye ;D

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.