OK...it really isnt all that tough...🙂
<?
if($submit){
if($submit=="next"){
#write the answer to the database
#increment the current question number, so it shows the next question
currentquestionnumber++;
}
else if($submit=="prev"){
#write the answer to the db
#decrement the current question number, so it will show the previous
#question
currentquestionnumber--;
}
}else{
#there is no submit variable, so
#at this stage, there is no current question number
currentquestionnumber=0;
}
#query database for proper question, which is stored in variable #currentquestionnumber
?>
<form name = "whatever" action = "whatever.html" method = "post">
#display question here
#put radio buttons with answers here
<input type = "submit" name = "submit" value = "prev">
<input type = "submit" name = "submit" value = "next">
</form>
If I understand your problem, this method may just do the trick. Hope this helps
Darren