I have a form that I have created which has a couple of inputs, one for price and the second is a radio button (values of yes, no). When I click the submit, I want to take the $POST['price'] and multiply it by .5 and replace the price variable with the new variable. Here is what I have, but it's not working. Can help me with what problem I have.
//if rework = yes then multiple price by .5
$price = $_POST['price'];
$rework = $_POST['rework'];
if ($rework = 'yes'){
$price = $price * .5;}
Thanks for your help in advance.
A