[ad_1]
You’ve got a run-on line, and can fix it like this:
$id = '<input type="text" value="';
if(isset($_REQUEST['rid'])){
$id .= $_REQUEST['rid'];
}
$id .= '" name="patient" >';
echo $id;
[ad_2]
solved syntax error, unexpected ‘if’ [duplicate]