Hubungkan pernyataan IF ke input PHP

<input type="hidden" name="q" value="<?php echo isset($_GET["q"]) ? $_GET["q"]: '' ;?>"/>
Clever Cicada