[Solved] Parse error: syntax error, unexpected T_IF, expecting ‘)’ What should I do? [duplicate]
[ad_1] try this, get role value outside array $role = “”; $option = $_GET[‘I-would-like’]; $option = trim($option); if ($option == ‘A quotation’ || $option == ‘Information’) { $role=”customer”; } else if($option == ‘To become a Partner’) { $role=”partners”; } else if ($option == ‘Training / Coaching’) { $role=”students”; } $userdata = array( ‘user_login’ => $username, … Read more