forked from ArunaTebel/FYPSandbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
39 lines (36 loc) · 1.15 KB
/
index.php
File metadata and controls
39 lines (36 loc) · 1.15 KB
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
<?php
/**
* Created by PhpStorm.
* User: ArunaTebel
* Date: 6/13/2015
* Time: 3:47 PM
*/
require "helpers/StringHelper.php";
require "helpers/DbHelper.php";
$stringHelper = new StringHelper();
?>
<html>
<head>
<title>FYP Sandbox</title>
<script type="text/javascript" src="public/js/jquery-2.1.4.js"></script>
<script type="text/javascript" src="public/js/form-cache.js"></script>
<script type="text/javascript" src="public/js/offlink.js"></script>
<script type="text/javascript" src="public/js/app.js"></script>
</head>
<body>
<form id="person-form" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>" method="post" name="person_form">
First name:<br>
<input type="text" class="phoenix-input" name="firstname"
value="<?php echo $stringHelper->generateRandomString(); ?>">
<br>
Last name:<br>
<input type="text" class="phoenix-input" name="lastname"
value="<?php echo $stringHelper->generateRandomString(); ?>">
<br><br>
<input type="submit" value="Submit">
<input type="button" id="view-person-list-btn" value="View Persons">
<ul id="person-list">
</ul>
</form>
</body>
</html>