I have a file called form.php which is just a regular html file with the addition of the following:
<form>
<input type="text" value="<?php if(!empty($_GET['type'])) {echo(htmlspecialchars($_GET['type']));} ?>" />
</form>
The problem is that when I open the file, the actual PHP code itself is displayed in the text field, instead of getting the variable 'type.' How do I solve this?