Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > hide information from the view source"

Reply
Thread Tools

hide information from the view source"

 
 
kwan
Guest
Posts: n/a
 
      10-14-2009

Hello,

I designed the examination system for the school. It is possible that
the user can retreive the questions and answer from the "view source"
which display as in a pain HTML text. It is the problem if the student
try to view the "source"; coz they will be able to copy the questions
and answers.

I used Perl CGI to write all the interface and to talk to the
database. As all the questions and answers are stored in the database.

Any hint so that I can hide the "Answers and Questions" from view
source?

Thank you
 
Reply With Quote
 
 
 
 
kwan
Guest
Posts: n/a
 
      10-14-2009
On Oct 14, 12:56*pm, kwan <(E-Mail Removed)> wrote:
> Hello,
>
> I designed the examination system for the school. It is possible that
> the user can retreive the questions and answer from the "view source"
> which display as in a pain HTML text. It is the problem if the student
> try to view the "source"; coz they will be able to copy the questions
> and answers.
>
> I used Perl CGI to write all the interface and to talk to the
> database. As all the questions and answers are stored in the database.
>
> Any hint so that I can hide the "Answers and Questions" from view
> source?
>
> Thank you


I not intend to post twice!!!
 
Reply With Quote
 
 
 
 
ccc31807
Guest
Posts: n/a
 
      10-15-2009
On Oct 14, 1:56*pm, kwan <(E-Mail Removed)> wrote:
> I designed the examination system for the school. It is possible that
> the user can retreive the questions and answer from the "view source"
> which display as in a pain HTML text. It is the problem if the student
> try to view the "source"; coz they will be able to copy the questions
> and answers.
>
> I used Perl CGI to write all the interface and to talk to the
> database. As all the questions and answers are stored in the database.


I assume that your questions are objective questions, such as multiple
choice or true/false, so that the 'answers' would be meaningful in an
objective sense.

When you generate the test, you generate the questions and the allowed
answers from the database. The source code would NOT contain the
correct answers, but all the allowed answers.

When the student submits the test, his answers are matched against the
correct answers from the database. This is done programmatically, not
through the HTML source, so the student can't see the correct answers.
This script generates a results page that contains the mark for each
question (or the overall mark if you don't want to show the result for
individual questions).

I would suggest having a multiple number of total questions for the
questions on the test, such as a database of 200 questions for a test
consisting of 20 questions, and selecting the questions randomly from
the database.

You might also want to check out MOODLE.

CC
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
hide information from the view "source" kwan Perl Misc 2 10-14-2009 07:29 PM
Design View when using an ASP:Panel to show/hide groups of <tr>'s Nathan Sokalski ASP .Net 2 10-13-2006 04:11 PM
Possible to hide masterpage in design view (asp.net 2.0)? Anders ASP .Net 0 04-19-2006 11:07 PM
[HIDE LAN] Hide a part of hosts into the LAN at VPN users? Paolo Bresi Cisco 1 04-04-2005 02:41 PM
How to make a week view and day view calendar just like month view calendar in .NET ? Parthiv Joshi ASP .Net Web Controls 1 07-06-2004 03:15 PM



Advertisments