I have a textbox on a page, like so:
<form action="verify.php" method="post">
<input type="text" width="30" name="securityCode"><br />
<input type="submit" value="Go" />
<form>
and on verify.php I have this:
<?php
$enteredCode=$_POST['securityCode'];
//Other stuff
?>
What I want to know is if anything malicious would come of this? E.g. if they entered some PHP into the textbox would it work?
EDIT
I didn't think it'd be important, but apparently it is. If they enter the correct code I'm setting $_SESSION['passedSecurityCheck']
to true
, if not I'm setting it to false. Sorry for not specifying that. :)