I am building a website, and I would like some help with one page of my website. The page is a transportation quote page. I have two textboxes. One textbox where the user will input the city of pick up, the other textbox will input the city drop off and a submit button which will give the quote. My problem is with the PHP side where it won’t display my quote. Below is my code for HTML and PHP.
HTML Code
[code]
quotes for transportation
City of Pick Up / Airport: | |
City of Drop Off / Airport: | |
and the PHP side which is send_quote.php
[php]<?php
$Location1=$POST[‘Location1’];
$Location2=$POST[‘Location2’];
if($Location1==“Agnew” xor $Location2==“Agnew”){
print("$180");
}
if($Location1==“Atherton” xor $Location2==“Atherton”){
print("$125");
}
if($Location1==“Bay Meadows” xor $Location2==“Bay Meadows”){
print("$125");
}
?>[/php]
Basically as a sample if I input San Francisco in one box, and Agnew in another box it should display the name of both locations and the price $180. Any help is a blessing. Thank you for the time.