Need Help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Albi009
    Sergeant

    • Jun 2010
    • 39

    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
  • CarbonTerry
    Major General

    • Oct 2005
    • 2620

    #2
    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

    Comment

    • Antonio878
      Master Sergeant

      • Sep 2007
      • 68

      #3
      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
      Check out:
      Great Windmill (A Place Where You Can Have Fun!)

      You can do so much on the website, check it out!

      Comment

      • Albi009
        Sergeant

        • Jun 2010
        • 39

        #4
        Re: Need Help

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

        Comment

        • Albi009
          Sergeant

          • Jun 2010
          • 39

          #5
          Re: Need Help

          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.

          Comment

          • Antonio878
            Master Sergeant

            • Sep 2007
            • 68

            #6
            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
            Check out:
            Great Windmill (A Place Where You Can Have Fun!)

            You can do so much on the website, check it out!

            Comment

            • Albi009
              Sergeant

              • Jun 2010
              • 39

              #7
              Re: Need Help

              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

              Comment

              • Antonio878
                Master Sergeant

                • Sep 2007
                • 68

                #8
                Re: Need Help

                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
                Check out:
                Great Windmill (A Place Where You Can Have Fun!)

                You can do so much on the website, check it out!

                Comment

                • Albi009
                  Sergeant

                  • Jun 2010
                  • 39

                  #9
                  Re: Need Help

                  Thanks a lot Antonio, I will try.

                  Comment

                  • Antonio878
                    Master Sergeant

                    • Sep 2007
                    • 68

                    #10
                    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.
                    Check out:
                    Great Windmill (A Place Where You Can Have Fun!)

                    You can do so much on the website, check it out!

                    Comment

                    • Albi009
                      Sergeant

                      • Jun 2010
                      • 39

                      #11
                      Re: Need Help

                      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.

                      Comment

                      Working...
                      X