Apr 23rd, 2010, 1:15 PM
Hi, I'm trying to set up a form using the API. I'm new to PHP and I'm following the code exactly as posted.
Formtools is on Medfordhosting.com the form is on a shared hosting server:
So first I place this code at the top of my PHP page:
<?php
require_once("http://www.medfordhosting.com/form_tools/global/api/api.php");
$fields = ft_api_init_form_page("", "test");
$params = array(
"submit_button" => "SimpleContact_submit",
"next_page" => "thanks.php",
"form_data" => $_POST,
"file_data" => $_FILES,
"finalize" => true
);
ft_api_process_form($params);
?>
When I attempt to load the form I get this fatal error on the bold line;
"Fatal error: Call to undefined function ft_api_init_form_page() in /home/thetecha/public_html/contactme.php on line 3"
(Line 3 bolded line)
Thetecha refers to the website (the tech and i) where the form is located.
The form doesn't display at all so obviously I can't add the form.
Like I said I'm new to PHP so this is probably simple Please help!
Thanks
Jhmblvd
Formtools is on Medfordhosting.com the form is on a shared hosting server:
So first I place this code at the top of my PHP page:
<?php
require_once("http://www.medfordhosting.com/form_tools/global/api/api.php");
$fields = ft_api_init_form_page("", "test");
$params = array(
"submit_button" => "SimpleContact_submit",
"next_page" => "thanks.php",
"form_data" => $_POST,
"file_data" => $_FILES,
"finalize" => true
);
ft_api_process_form($params);
?>
When I attempt to load the form I get this fatal error on the bold line;
"Fatal error: Call to undefined function ft_api_init_form_page() in /home/thetecha/public_html/contactme.php on line 3"
(Line 3 bolded line)
Thetecha refers to the website (the tech and i) where the form is located.
The form doesn't display at all so obviously I can't add the form.
Like I said I'm new to PHP so this is probably simple Please help!
Thanks
Jhmblvd