<?php

$x=$_POST['ans']

if ($x='foo') {
	echo "hello";
}
?>
 
 
<body>
 
<form method="post">
answer <input type="text" name="ans"/><hr/>
<input type="submit" value="submit"/>
</form>
 
</body>