Hello everyone,
I know this is kind of a basic question but no matter how much I google, I just can't figure out how to do it ... :-(
I have several forms. Each with a question you can answer checking one of the provided radio buttons. Like this:
Now the first thing I fail to accomplish is to provide a button that's supposed to submit the answers into an evluation script. Something I tried was:
But this isn't going to pass anything to eval.php and I have no idea how to make it do so.
Next problem:
The eval.php is supposed to check all the answers. I the value of an answer is "1" then a counter shall be increased by one and if the value is "0" then the counter shall not be increased.
At the end case the counter has a certain value another page with information is supposed to be displayed. If the counter is too low the Question form is supposed to be repeated.
Is there anyone who could help me out with that ?
Best Regards,
Thomas
I know this is kind of a basic question but no matter how much I google, I just can't figure out how to do it ... :-(
I have several forms. Each with a question you can answer checking one of the provided radio buttons. Like this:
Code:
<form action="radio.html" method="post">
<p>1. Question</p>
<fieldset>
<input type="radio" id="PG01S01" name="PG01" value="0">
<label for="PG01S01"> Answer 1</label>
<br>
<input type="radio" id="PG01S02" name="PG01" value="1">
<label for="PG01S02"> Answer 2</label>
</fieldset>
</form>
<form action="radio.html" method="post">
<p>2. Question</p>
<fieldset>
<input type="radio" id="PG02S02" name="PG02" value="0">
<label for="PG02S01"> Answer 1</label>
<br>
<input type="radio" id="PG02S02" name="PG02" value="1">
<label for="PG02S02"> Answer 2</label>
</fieldset>
</form>
... and so on
Now the first thing I fail to accomplish is to provide a button that's supposed to submit the answers into an evluation script. Something I tried was:
Code:
<form action="eval.php" method="POST" name="Evaluation" id="HP2">
<p align="center">
<input type="Submit" name="Engage2" id="E2" value="Submit Answers" />
</form>
But this isn't going to pass anything to eval.php and I have no idea how to make it do so.
Next problem:
The eval.php is supposed to check all the answers. I the value of an answer is "1" then a counter shall be increased by one and if the value is "0" then the counter shall not be increased.
At the end case the counter has a certain value another page with information is supposed to be displayed. If the counter is too low the Question form is supposed to be repeated.
Is there anyone who could help me out with that ?
Best Regards,
Thomas