Results 1 to 11 of 11

Thread: Need Help
      
   

  1. #1
    Albi009 is offline Sergeant
    Join Date
    Jun 2010
    Posts
    39

    Default Need Help

    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

  2. #2
    CarbonTerry's Avatar
    CarbonTerry is offline Major General
    Join Date
    Oct 2005
    Location
    St L MO
    Posts
    2,590

    Default Re: Need Help

    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

  3. #3
    Antonio878's Avatar
    Antonio878 is offline Master Sergeant
    Join Date
    Sep 2007
    Posts
    68

    Default Re: Need Help

    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

  4. #4
    Albi009 is offline Sergeant
    Join Date
    Jun 2010
    Posts
    39

    Default Re: Need Help

    Thanks Antonio! For this I think i need to download the php. Am i right?

  5. #5
    Albi009 is offline Sergeant
    Join Date
    Jun 2010
    Posts
    39

    Default Re: Need Help

    Quote Originally Posted by Antonio878 View Post
    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
    Could you please help me. As I am new. I started with form wizard but it is not working. I am bit confused. DO i need to download php, if yes from where can I download it and can it wok with blue voda. Sorry.. I am bit struggling. Thanks in advance.

  6. #6
    Antonio878's Avatar
    Antonio878 is offline Master Sergeant
    Join Date
    Sep 2007
    Posts
    68

    Default Re: Need Help

    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

  7. #7
    Albi009 is offline Sergeant
    Join Date
    Jun 2010
    Posts
    39

    Default Re: Need Help

    Quote Originally Posted by Antonio878 View Post
    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
    How did you do for your quiz. I mean you just use the form or something else. Please let me know. Thanks

  8. #8
    Antonio878's Avatar
    Antonio878 is offline Master Sergeant
    Join Date
    Sep 2007
    Posts
    68

    Default Re: Need Help

    Quote Originally Posted by Albi009 View Post
    How did you do for your quiz. I mean you just use the form or something else. Please let me know. Thanks
    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

  9. #9
    Albi009 is offline Sergeant
    Join Date
    Jun 2010
    Posts
    39

    Default Re: Need Help

    Thanks a lot Antonio, I will try.

  10. #10
    Antonio878's Avatar
    Antonio878 is offline Master Sergeant
    Join Date
    Sep 2007
    Posts
    68

    Default Re: Need Help

    If you want the coding to see how it works here:

    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>
    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.

  11. #11
    Albi009 is offline Sergeant
    Join Date
    Jun 2010
    Posts
    39

    Default Re: Need Help

    Quote Originally Posted by Antonio878 View Post
    If you want the coding to see how it works here:

    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>
    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.
    Thanks a lot ANtonio. I am really very thankful to you.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49