I have the following code which displays questions and a text area where the answer to the question can be placed.
My problem is that I am trying to name the textareas
"answer1" "answer2" etc.
At the moment it is coming up with "answer1cols%3D30", when it is posted.
any ideas????
while ($row = mysql_fetch_array($result))
{
echo "\n<tr>\n<td>".
"<b>Question Number:</b>".
$row["question_id"].
"</td>\n</tr>";
echo "\n<tr>\n<td>".
$row["question"].
"</td>\n</tr>";
echo "\n<tr>\n<td>".
"<textarea name= answer". $row["question_id"]."cols=30 rows=10></textarea>".
"</td>\n</tr>";
}