Skip to content

Practical Work 03 - Php form example

Here is a form for students to get their grade from their student number:

New: examination scores

Enter your student number (8 digits) :

Try for instance: 20201001 20201005 20201008

Note:

This form will only be visible on the httpd server (after publish), since it is the server that will execute the php code.

In the local serve mode you'll see nothing.

To make this form happen, simply insert

<?php include '../includes/scores.php'; ?>

in an .md file, and edit the student scores in includes/scores.php.

When run, the script mkdocs-et.sh will detect the tag <?php and rename the produced index.html as index.php.