隐藏html页面的一部分 [英] Hiding a part of an html page

查看:70
本文介绍了隐藏html页面的一部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为学生提供在线教程。每个页面都包含一个学生必须回答的问题。答案是在这个例子的javascript中:

I provide online tutorials for my students. Each page contains a question, which the student must answer. The answer is in javascript like this example:

展开 | 选择 | Wrap | 行号

推荐答案

您好systomx,

为什么不将答案保存在文本文件中并通过AJAX读取该文件来检查答案,尽管首选的方法是将答案保存在数据库中,然后使用AJAX调用服务器端脚本(PHP ,ASP)连接到数据库表以验证特定问题的答案

问候,

Omer Aslam
Hi systomx,
why not you save the answers inside a text file and the read that file through AJAX to check the answer , although the preferred way is to save the answers inside a db and then use a AJAX call to the server side script(PHP, ASP) that connects to a database table to verify the answer against tat particular question
regards,
Omer Aslam


只是哈希Ť他回答。然后哈希学生的答案并比较哈希值。
Just hash the answer. Then hash the student''s answer and compare the hashes.



只需哈希答案。然后哈希学生的答案并比较哈希值。
Just hash the answer. Then hash the student''s answer and compare the hashes.



上述方法将允许学生使用相同的散列作为答案给出的四个选项,并将得到的散列与页面中保存的散列进行比较:D我可能会这样做,如果我是隐藏学生[* evil *]

问候,

Omer Aslam

the above method will allow to students to use the same hashing with the four options given as answers and the compare the resulting hash with the one saved in the page :D , i might do that if i was hid student [*evil*]
regards,
Omer Aslam


这篇关于隐藏html页面的一部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆