-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path005-page.php
40 lines (39 loc) · 912 Bytes
/
005-page.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* @mainScript: 005-index.php
*
* This script is just the HTML structure of our application page.
* Very often it is referred as "layout" because here you can link
* CSS or stuff that cha change the appeareance of the content.
*
* The body contains just some flow conditionals, each one include
* a sub-module only if it is needed by the actual app status.
*
* The point is to keep the code as clean and simple as possible by
* demanding to sub-modules the big part of the job.
*
*/
?>
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>PHP005 - Single Script Form Example</title>
</head>
<body>
<?php
/**
* SHOW THE FORM AND ERROR MESSAGES
*/
if ($showForm) {
include('005-page-form.php');
}
/**
* SHOW THE "RESULT PAGE"
*/
if ($showResult) {
include('005-page-result.php');
}
?>
</body>
</html>