Menu

server side validation for quizzes

Help
idlehunter
2008-06-21
2013-06-03
  • idlehunter

    idlehunter - 2008-06-21

    I have a quiz that needs server side validation. I need to validate the answers to the question on the server, so that the user cannot "view page source" and the answers. Does phpFormGenerator create that automatically for strings, numbers, drop-lists or radio buttons, etc?
    After all of the answers are validated, along with the users information, they will be redirected to a new page~lesson, and an e-mail will be sent to us with their information, and the quiz # and their info will also be stored in a database. I didn't know if phpFormGenerator did that, and I wasn't sure I was doing it right if it did?

     
    • TNTEverett

      TNTEverett - 2008-06-21

      Your form can check whether questions are answered but it can not check for specific answers.  The phpFormgenerator can create the form with as many questions as you like but even multi page forms will have the same limitation.  Once a form is submitted the form processor (process.php or processor.php depending on the version used) will check basic form entry and either store the data in a text file, mySQL, and/or send the results in an email.  Anything more sophisticated is left to the user to program using the phpFormgenerator as a starting point. 
      For your application you can code the answer checking in the processor.  The answers will not be visible to any user and you can store the results of each test.  Multiple pages can be checked in a multi page test but this is not a specific feature of the phpFormgenerator and will have to be coded by you or someone else capable of making the changes for you. 

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.