Hi
I am trying to pass a form variable that a user would enter a postcode/zipcode value and cannot get the conditional statement to work. What I want to happen is when a user enter a postcode/zipcode ie: CF2 I want to set the condition to the first two letters 'CF' so if it 'begins with' 'CF' then displays on price and 'does not begin with' 'CF' shows another price....see below what I have so far come up with
if($_SESSION['cboBolton'] == 'No')
$int_sale_fee = 0.00;
else if($_SESSION['cboBolton'] == 'Yes' && $_SESSION['txtPostcode_A'] == "CF")
$int_sale_fee = 350;
else if($_SESSION['cboBolton'] == 'Yes' && $_SESSION['txtPostcode_A'] != "CF")
$int_sale_fee = 50;
Any ideas?
Many thanks in advance