I have the following code which enables a user to move through a series of questions.
The previous and next buttons are provided by using images and a bit of java script to indicate which image was clicked.
<?
// Start the session variables
require "../include/start.inc";
If (!isset($CurrentAspectCategoryID)) {
$CurrentAspectCategoryID = 1;
}
echo "Current Aspect Category = $CurrentAspectCategoryID<BR>";
if ($selbutton == "next") {
$CurrentAspectCategoryID++;
}
if ($selbutton == "prev") {
$CurrentAspectCategoryID--;
}
echo "Current Aspect Category = $CurrentAspectCategoryID";
?>
<FORM METHOD="POST" NAME="AspectStatements" ACTION="testprofile.php">
<INPUT TYPE="image" NAME="previous" SRC="aspect_imgs/previous.gif" onclick="javascript:this.form.selbutton.value='prev'; this.form.submit();">
<INPUT TYPE="image" NAME="next" SRC="aspect_imgs/next.gif" onclick="javascript:this.form.selbutton.value='next'; this.form.submit();">
<INPUT NAME="selbutton" TYPE="hidden" VALUE="">
</FORM>
The problem is that using IE5.5 incrementing the numbers using the next button is not consistant, i.e. it sometimes increments the number while advancing by 2
In stark contrast Netscape 6 works find the number increment and decrement correctly.
Could some please try the above code or tell where I am going wrong.
Many Thanks
Bob