Home > Backend Development > PHP Tutorial > php 获取上一个页面的内容解决办法

php 获取上一个页面的内容解决办法

WBOY
Release: 2016-06-13 12:42:55
Original
1165 people have browsed it

php 获取上一个页面的内容
我做了一个在线答题系统,有个小问题,用户作答完毕,【点击提交】,系统给批改结束后,如何在用户作答的那份试卷【提交的试卷】的上面标记出正确的和错误的题,我主要是不清楚,用户提交的那份试卷内容,如何原封不动地传到查看答案页面,

<?php<br />
class shijuan_controller extends base_controller{<br />
	public function index_action(){<br />
		给A用户渲染试卷A(任何用户的试卷都是随机生成的)<br />
	}<br />
	public function submit_action(){<br />
		获得试卷A的POST[]的答案后,系统判卷完毕后,<br />
		把index_action里面渲染的试卷A拿过来,在上面<br />
		标记出对错,然后再次渲染给用户A<br />
	}<br />
}
Copy after login

不知道怎么实现,难道要把试卷A生成文件后,在submit_action中读取文件再修改??有没有什么办法啊

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template