I am trying to assign a value to a variable through a form created in html
Form returns place holder website_features and based on the value being good or bad, i want it to return numeric 4 or 2 Tried the below code with error Parse error: syntax error, unexpected 'if' (T_IF) in C:\xampp\htdocs\e-commerce2\feedback.php Any help is appreciated
$Website_score= if ($_POST['website_features']='GOOD')
{echo '4'}
else {echo '2'};