Simple network online examination system with PHP

Renderings:

Home


True or False



Multiple choice


Multiple choice


Fill in the blank


Automatic scoring system after assignment


process:

Tools used: NetBeans IDE 8.2 WampServer Google Chrome

Use PHP, JS, HTML, CSS

Directory Structure:


File Description

file

Explanation

common

Public file directory

data

Data Directory (save Exam)

css

  CSS style file directory

js

  JavaScript file directory

image

  Image File Directory

view

  HTML template files directory

index.php

  Home System

test.php

  Online test function

total.php

  View function test scores

Design exam:

Storage array using PHP exam

Part of the code as follows:

True or False


Multiple choice


Multiple choice



Fill in the blank


Write getDataInfo () function in the public library, the exam to obtain information

Create two empty array variables, the score for the number of items saved some questions and each question

Read information from exam

Topic score calculation and the number of questions in each single title at each Questions

Return in the form of a two-dimensional array


In test.php online test page, using the list () is received from getDataInfo () function returns the value of


Computer automatic marking



Published 13 original articles · won praise 20 · views 10000 +

Guess you like

Origin blog.csdn.net/gufudhn/article/details/80352367