php variable won't echo out
Posted on 2009-07-04
Info that is posted from a form:
answer1 = 0;
Variable create on the same page;
$loop365 = 1;
Create a variable from the form data:
$answer1 = $_POST['answer1'];
Join two variables and make a new one:
$answerloop365 = '$answer'.$loop365;
Echo the result:
The echo = "$answer1" instead of "0"
What am I doing wrong?