value="Student" "($type=='Student')?'checked':''">
value="Regular" ($type=='Regular')?'checked':''>
value="Retire" "($type=='Retire')?'checked':''">
value="Student"<?= $type=='Student' ? ' checked' :'' ?>>
value="Regular"<?= $type=='Regular' ? ' checked' :'' ?>>
value="Retire"<?= $type=='Retire' ? ' checked' :'' ?>>
<?php
$type="Student";
?>
<form method="POST" action="<?= $_SERVER['PHP_SELF'] ?>">
<div class="container">
<br/>
<b>Please fill in the following details:</b>
<br/><br/>
Ticket Type: <br/>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio1" value="Regular"<?=$type=='Regular'?' checked':'' ?>>
<label class="form-check-label" for="inlineRadio1">Regular</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio2" value="Student"<?= $type=='Student'?' checked':''?>>
<label class="form-check-label" for="inlineRadio2">Student</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio3" value="Retire"<?= $type=='Retire'?' checked':'' ?>>
<label class="form-check-label" for="inlineRadio3">Retire</label>