| Server IP : 3.96.16.70 / Your IP : 216.73.216.15 Web Server : Apache System : Linux ip-172-31-26-103.ca-central-1.compute.internal 6.1.163-186.299.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Feb 24 16:35:42 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/dumpchup.ca/behaviour-taco-bell/app/Form-Builder/Examples/ |
Upload File : |
<?php
session_start();
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
require_once('../Form.php');
$url_split = explode("/Form-Builder", (isset($_SERVER['HTTPS']) ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]");
$url = $url_split[0];
//echo $url;
$simple_form = new Form('simple_form', 'post', '', 'en', 'Next', $url);
$simple_form->addElements(
array(
// element_name => css classes //
'firstname' => array('half', 'left'),
'lastname' => array('half', 'right'),
'email_address' => array('full')
)
);
?>
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Simple Form</title>
<script type="text/javascript" language="javascript" src="../JS/jquery-1.11.3.min.js" /></script>
</head>
<body style="max-width: 800px">
<?php
if (isset($_POST) && count($_POST) > 0) {
echo '<h2>Post Values</h2>';
echo '<pre>';
var_dump($_POST);
echo '</pre>';
}
?>
<h1>Simple Form</h1>
<?php $simple_form->buildForm(); ?>
</body>
</html>