-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·42 lines (40 loc) · 1.49 KB
/
index.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
41
42
<?php
require_once 'autoload.php';
$form = new Form();
$form->addElement(new TextInput( 'username ', 'Your First name'));
$form->addElement(new PasswordInput('password', 'Enter Password', '', 'fas fa-lock'));
// $form = new Form( '#', 'post');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Form Widget</title>
<link rel="stylesheet" href="icon/css/all.min.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<?php
echo $form->render();
?>
<!-- <div class="lf-loginForm">
<div class="lf-title"><span>Login Form</span></div>
<form action="#" method="post">
<div class="lf-input">
<i class="fas fa-user"></i>
<input type="text" name="username" placeholder="Uername or Email" autocomplete="off">
</div>
<div class="lf-input">
<i class="fas fa-lock"></i>
<input type="password" name="password" placeholder="Password" autocomplete="off">
</div>
<div class="lf-form_text"><!-- <span>Wrong info.</span> -- <a href="#">Forget Password?</a></div>
<div class="lf-input">
<input class="lf-submit_btn" type="submit" value="Login">
</div>
<div class="lf-form_text">Not a member? <a href="./signup.html">Sign Up</a></div>
</form>
</div> -->
</body>
</html>