This is a line inside the signup form which will pass the value entered via POST to a class called 'user' on success. On failure I want it to echo a failure message.
if(isset($_POST['email']))?$user->email=$_POST['email']:echo "no value found";
following is the error
Parse error: syntax error, unexpected '?' in C:\xampp\htdocs\login_API\Users\signup.php on line 15