Jump to content

malkocoglu

Members
  • Posts

    32
  • Joined

  • Last visited

Everything posted by malkocoglu

  1. Thanks Jessica and Q695 for replies. Jessica; I have been trying different ways of setting the variable if two conditions are met but there is no luck so far. Could you give me an example how to write it in functions? Q695; I think you mean database tables. I am not really good at database but I am working on it. It may be my future goal and I am hopping to get this issue fixed before i go into database.
  2. Correction... I include the prices.php in the final page so I could get the price when I use $quotation in final page which is index2.php.
  3. I include the proces.php in the final page so I could get the price when I use $quotation in final page which is index2.php.
  4. Hello guys, I have a slight problem with a booking form i made. Booking form is for minicab booking so price calculation is involved. The booking form was working fine with php4 enabled hosting but i have problem with php5 hosting. Script doesnt pass the varible after if conditions are mathced. What happens is, when user selects a pick up address and dropp of address, price should be set in $quotation. The code is below; if ($postcode == "AL1 St. Albans" && $airport == "Heathrow T1" ) { $quotation = 42;} where you see 42 is how much the journey will cost but it doesnt reflect on the final page. I have also tried the following code which works fine; if ($postcode == "AL1 St. Albans" && $airport == "Heathrow T1" ) { echo "42";} Can anyone help me solve this error. Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.