1
0
Fork 0
feedizer-php/htdocs/libraries/Nibble-Forms/index.php

35 lines
997 B
PHP
Raw Permalink Normal View History

2015-11-13 23:51:46 +01:00
<?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>