and you grab the next_page parameter in your script, then print a 302 redirect directive as described above, the browser should load the next page.<input type="hidden" name="next_page" value="/quiz/page2.html">
Alternatively you could have several hidden divs and change the style of the completed one to display: none; using Javascript, there are many ways to go about this as ever.
What does the code, HTML and Perl that you've tried look like?
What response do you see, in the browser?, in your server logs?
Javascript form example
<html> <head> <title>Invisible divs</title> <script> function showDiv(nextDiv) { for ( var divNum = 0; divNum < 4; ++divNum ) // Change 4 to suit n +umber of divs in page { var currentDiv = document.getElementById("div" + divNum); currentDiv.style.display = ( currentDiv.id == nextDiv ) ? "blo +ck" : "none"; } } </script> </head> <body onload="showDiv('div0');"> <!-- change action below to suit your needs--> <form action="/cgi-bin/assesTest.pl"> <div id="div0" style="display: none;"> This will be the only bit visible at first <a href="#" onclick="showDiv('div1')">Next ></a> </div> <div id="div1" style="display: none;"> This will be visible after clicking on the link at the end of the firs +t div <a href="#" onclick="showDiv('div2')">Next ></a> </div> <div id="div2" style="display: none;"> This will be visible after clicking on the link at the end of the seco +nd div <a href="#" onclick="showDiv('div3')">Next ></a> </div> <div id="div3" style="display: none;"> This is the last element to display <input type="submit"> </div> </form> </body> </html>
In reply to Re^3: Loading a web page automatically
by Utilitarian
in thread Loading a web page automatically
by taemid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |