Could you post the code of the page?It has something to do with it.
The page only goes like that once hitting the submit button on the form using the engine.
<?php
function sendApp() {
$username = $engine->secure($_POST['username']);
$age = $engine->secure($_POST['age']);
$real_name = $engine->secure($_POST['real_name']);
$why_you = $engine->secure($_POST['why_you']);
$past_exp = $engine->secure($_POST['past_exp']);
$different = $engine->secure($_POST['different']);
$engine->query("INSERT INTO jobs (username,age,why_you,past_exp,different,real_name) VALUES ('" . $username . "','$age','$why_you','$past_exp','$different','$real_name')");
}
$username = $_POST['username'];
$real_name = $_POST['real_name'];
$why_you = $_POST['why_you'];
$past_exp = $_POST['past_exp'];
$different = $_POST['different'];
if(isset($username) && isset($real_name) && isset($why_you) && isset($past_exp) && isset($different)){
sendApp();
}else{
echo "error";
}
?>
<?php
global $engine;
function sendApp() {
global $engine;
$username = $engine->secure($_POST['username']);
$age = $engine->secure($_POST['age']);
$real_name = $engine->secure($_POST['real_name']);
$why_you = $engine->secure($_POST['why_you']);
$past_exp = $engine->secure($_POST['past_exp']);
$different = $engine->secure($_POST['different']);
$engine->query("INSERT INTO jobs (username,age,why_you,past_exp,different,real_name) VALUES ('" . $username . "','$age','$why_you','$past_exp','$different','$real_name')");
}
$username = $_POST['username'];
$real_name = $_POST['real_name'];
$why_you = $_POST['why_you'];
$past_exp = $_POST['past_exp'];
$different = $_POST['different'];
if(isset($username) && isset($real_name) && isset($why_you) && isset($past_exp) && isset($different)){
sendApp();
}else{
echo "error";
}
?>
You can remove "global $engine; at the top.Managed to get it working using the code below.
PHP:<?php global $engine; function sendApp() { global $engine; $username = $engine->secure($_POST['username']); $age = $engine->secure($_POST['age']); $real_name = $engine->secure($_POST['real_name']); $why_you = $engine->secure($_POST['why_you']); $past_exp = $engine->secure($_POST['past_exp']); $different = $engine->secure($_POST['different']); $engine->query("INSERT INTO jobs (username,age,why_you,past_exp,different,real_name) VALUES ('" . $username . "','$age','$why_you','$past_exp','$different','$real_name')"); } $username = $_POST['username']; $real_name = $_POST['real_name']; $why_you = $_POST['why_you']; $past_exp = $_POST['past_exp']; $different = $_POST['different']; if(isset($username) && isset($real_name) && isset($why_you) && isset($past_exp) && isset($different)){ sendApp(); }else{ echo "error"; } ?>