$testbox = isset($_POST['testbox'])?$_POST['testbox']:null;I was looking for answer at php tutorial, but unsuccessful.
$testbox = isset($_POST['testbox'])?$_POST['testbox']:null;The above the is the same as
if(isset($_POST['textbox'])) { $textarea = $_POST['textbox']; } else { $textarea = null; }
if ($x==$y) { $result = 'true';} else { $result = 'false';}
$result = ($x==$y) ? 'true' : 'false';