Hello. I am trying to pass some information from a mysql query through a form. I am not doing it via url because I was told the amount of information i could pass throught url is limited. The code I use is the following:
...
if ($showquestcount=='2') { //DISPLAY ONLY QUESTIONNAIRES
echo '<form action="scripts/quest.php" method="post">';
/* $name=stripslashes($row['name']);
$qid=stripslashes($row['questionnaireid']);
$qyear=stripslashes($row['questionnaireyear']);
$qnum=stripslashes($row['questionnumber']);*/
echo '<td width="65%"><FONT SIZE="-1">Display information on';
echo '<INPUT TYPE="HIDDEN" NAME="showquestcount" VALUE='.$showquestcount.'>';
echo '<INPUT TYPE="HIDDEN" NAME="name" VALUE='.stripslashes($row['name']).'>';
echo '<INPUT TYPE="HIDDEN" NAME="qid" VALUE='.stripslashes($row['questionnaireid']).'>';
echo '<INPUT TYPE="HIDDEN" NAME="qyear" VALUE='.stripslashes($row['questionnaireyear']).'>';
echo '<INPUT TYPE="HIDDEN" NAME="qnum" VALUE='.stripslashes($row['questionnumber']).'>';
echo '<input type="submit" value="Questionnaires" /></FONT></td></tr>';
}...
I want the submit button appears next to every register given as a result of the query. The problem is that all the buttons process the same information, the information corresponding to the last register given by the query. How can I pass in each register's button the information of each register?
Any comment will help. Thanks in advance.