Don't use eval. If you are checking whether these variables are set:
$question_1;
$question_2;
etc.
then, just do:
while(...) {
...
$name = ...
...
if(isset($name)) {
print "$name is set";
}
else {
...
}
}
The eval() will evaluate the string as a PHP code. So it will evaluate;
"$question_1"
Just type in $question_1 in a single line by itself in PHP and you'll notice that it does nothing and it has a syntax error (no semicolor) and since you are not performing any operations on $question_1 or declaring it inside a class, the PHP will complain of "expected operator" or "syntax" errors.
-sridhar