Oct 18th, 2011, 7:31 AM
Hey Ben,
I have been trying to get the submission module to work with not much success. I have this in the top of my page ( this is a single page form because I am using javascript to show/hide section of the form rather than use multiple pages - let me know if this will not work):
When I come back and try to log into the formtools admin using the email (I am using the email address as the username ) and password originally supplied from the form, the @ sign and the period gets stripped from the username and the login fails.
The other thing I am not sure of, assuming I will get this working is if the user who logs in can see all submissions, or simply all submissions that match the user/pass combination. I assume the later?
Dave
I have been trying to get the submission module to work with not much success. I have this in the top of my page ( this is a single page form because I am using javascript to show/hide section of the form rather than use multiple pages - let me know if this will not work):
Code:
<?php
require_once($_SERVER['DOCUMENT_ROOT'] . "/support/formtools/global/api/api.php");
ft_api_start_sessions();
$fields = isset($_SESSION["form_tools_form_data"]) ?
ft_strip_tags($_SESSION["form_tools_form_data"]) : array();
$fields = ft_api_init_form_page(1);
$params = array(
"submit_button" => "submit",
"next_page" => "/profiler/thanks.php",
"form_data" => $_POST,
"file_data" => $_FILES,
"finalize" => true,
"may_update_finalized_submissions" => true
);
ft_api_process_form($params);
?>
When I come back and try to log into the formtools admin using the email (I am using the email address as the username ) and password originally supplied from the form, the @ sign and the period gets stripped from the username and the login fails.
The other thing I am not sure of, assuming I will get this working is if the user who logs in can see all submissions, or simply all submissions that match the user/pass combination. I assume the later?
Dave