Hi
I am working on etest book. It is set of multiple choice questions. Is it possible that candidate do it online, and if answers are wrong it shows them. If anyone knows, please help me. Your help will be highly appriciated.
Thanks
Hi
I am working on etest book. It is set of multiple choice questions. Is it possible that candidate do it online, and if answers are wrong it shows them. If anyone knows, please help me. Your help will be highly appriciated.
Thanks
I would contact Naval Design. He may be able to help.
CarbonTerry
Semper Fi
Still green...still mean......just not as lean
Red Hawk Archery
Zone 5 Photo
My USMC
You can actually use php to create a multiple choice, that tells you if it is right or wrong, once you submit the questions, I had to do one for my class for World War 2 here: http://great-windmill.com/questions.php
Thanks Antonio! For this I think i need to download the php. Am i right?
You don't need to download PHP since vodahost already has php set up for us, so you just need to change the extension on bluevoda builder
All you do is use a form on the first page, then on the second page is all about php coding, you will be collecting data from the form and then the php will evaluate it and see if it equals to the answer, if it doesn't it will give the result "Wrong Answer" You will be using If..else statement
Thanks a lot Antonio, I will try.
If you want the coding to see how it works here:
This actually shows if the person doesn't get the same letter as the answer, then it will show a result of it is wrong or if it is right, you can use my coding but just need to change everything up. Additionally the bottom it tells how many are right and how many are wrong.PHP Code:<html>
<body>
Question #1: What was the first tanks name? <br>
<?php
if($questionone=="b")
{
echo "<font style='font-size:16px' color='#32CD32' face='Times New Roman'><b>Your answer is correct!</b></font>";
$ans1="1";
}
else
{
echo "<font style='font-size:16px' color='#FF0000' face='Times New Roman'><b>Your answer is wrong! The answer is B!</b></font>";
$ans1="0";
}
?>
<br>Question #2: Why did the British not like the idea of tanks? <br>
<?php
if($b=="d")
{
echo "<font style='font-size:16px' color='#32CD32' face='Times New Roman'><b>Your answer is correct!</b></font>";
$ans2="1";
}
else
{
echo "<font style='font-size:16px' color='#FF0000' face='Times New Roman'><b>Your answer is wrong! The answer is D!</b></font>";
$ans2="0";
}
?>
<br>Question #3: Who used the machine gun first in the great war? <br>
<?php
if($c=="a")
{
echo "<font style='font-size:16px' color='#32CD32' face='Times New Roman'><b>Your answer is correct!</b></font>";
$ans3="1";
}
else
{
echo "<font style='font-size:16px' color='#FF0000' face='Times New Roman'><b>Your answer is wrong! The answer is A!</b></font>";
$ans3="0";
}
?>
<br>Question #4: Why did the british not like the machine gun at first? <br>
<?php
if($d=="b")
{
echo "<font style='font-size:16px' color='#32CD32' face='Times New Roman'><b>Your answer is correct!</b></font>";
$ans4="1";
}
else
{
echo "<font style='font-size:16px' color='#FF0000' face='Times New Roman'><b>Your answer is wrong! The answer is B!</b></font>";
$ans4="0";
}
?>
<br>Question #5: Were machine guns used mainly for defense of offense? <br>
<?php
if($e=="a")
{
echo "<font style='font-size:16px' color='#32CD32' face='Times New Roman'><b>Your answer is correct!</b></font>";
$ans5="1";
}
else
{
echo "<font style='font-size:16px' color='#FF0000' face='Times New Roman'><b>Your answer is wrong! The answer is A!</b></font>";
$ans5="0";
}
?>
<br>Question #6: What was a big problem with machine guns? <br>
<?php
if($f=="c")
{
echo "<font style='font-size:16px' color='#32CD32' face='Times New Roman'><b>Your answer is correct!</b></font>";
$ans6="1";
}
else
{
echo "<font style='font-size:16px' color='#FF0000' face='Times New Roman'><b>Your answer is wrong! The answer is C!</b></font>";
$ans6="0";
}
?>
<br><br><b>Machine Guns Mark:</b>
<?php
$mgm = $ans1+$ans2+$ans3+$ans4+$ans5+$ans6;
echo "$mgm Out Of 6";
?>
<br><b>Total Mark:</b> <br>
<?php
$tm = $mgm;
echo "$tm Out Of 6";
?>
</body>
</html>
There are currently 1 users browsing this thread. (0 members and 1 guests)