-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathindex.php
34 lines (31 loc) · 997 Bytes
/
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
<?php
error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', 1);
session_name('nibble');
ini_set('session.gc_maxlifetime', 30 * 60);
session_set_cookie_params(30 * 60);
session_start();
include_once __DIR__.('/form_example.php');
?>
<!doctype html>
<html>
<head>
<title>Nibble Forms Demo</title>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" media="screen" href="style.css" />
</head>
<body>
<?php echo $form->openForm() ?>
<?php echo $form->renderHidden() ?>
<?php echo $form->renderLabel('text_field') ?>
<?php echo $form->renderField('text_field') ?>
<?php echo $form->renderError('text_field') ?>
<?php echo $form->renderRow('email') ?>
<?php echo $form->renderRow('confirm_email') ?>
<?php echo $form->renderRow('choice') ?>
<p>
<button type="submit">Submit</button>
</p>
<?php echo $form->closeForm() ?>
</body>
</html>