May 9th, 2009, 2:39 PM
(This post was last modified: May 9th, 2009, 3:13 PM by stevenheidel.)
Okay now I've got the paths correct. (Checked by my boss as well).
But your script keeps directing the page to error.php, which doesn't exist. Weird?
EDIT:
Oh I see, formtools directs you to this script when there is an error. Unfortunately, the error.php comes up in the same folder as the page itself, not in the formtools directory.
New code:
But your script keeps directing the page to error.php, which doesn't exist. Weird?
EDIT:
Oh I see, formtools directs you to this script when there is an error. Unfortunately, the error.php comes up in the same folder as the page itself, not in the formtools directory.
New code:
PHP Code:
<?php
class CandidatesRegistrationController extends Controller {
public function on_start() {
$curr_folder = dirname(__FILE__);
require_once("$curr_folder/../../database/global/api/api.php");
$fields = ft_api_init_form_page("", "test");
$params = array(
"submit_button" => "submit",
"next_page" => "success.php",
"form_data" => $_POST,
"finalize" => true
);
ft_api_process_form($params);
}
}
?>