Jun 29th, 2010, 8:32 AM
Hi, I decided to try using the API to set up the form I'm using, and I'm having a bit of trouble.
I place the following code at the top of the page
<?php
require_once("/domain.com/username/public_html/form_tools/global/api/api.php");
$fields = ft_api_init_form_page("", "test");
$params = array(
"submit_button" => "OFSvendorfull_submit",
"next_page" => "paynow.php",
"form_data" => $_POST,
"finalize" => true
);
ft_api_process_form($params);
?>
I get the following errors and the page will not load.
Warning: require_once(domain.com/username/public_html/form_tools/global/api/api.php) [function.require-once]: failed to open stream: No such file or directory in /home/optionsf/public_html/vendorregister2.php on line 2
Fatal error: require_once() [function.require]: Failed opening required 'domain.com/username/public_html/form_tools/global/api/api.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/optionsf/public_html/vendorregister2.php on line 2
I've set execute permissions on the file. And of course the correct error message includes my domain and username.
Can anyone tell me what I'm doing wrong here?
Thank you.
I place the following code at the top of the page
<?php
require_once("/domain.com/username/public_html/form_tools/global/api/api.php");
$fields = ft_api_init_form_page("", "test");
$params = array(
"submit_button" => "OFSvendorfull_submit",
"next_page" => "paynow.php",
"form_data" => $_POST,
"finalize" => true
);
ft_api_process_form($params);
?>
I get the following errors and the page will not load.
Warning: require_once(domain.com/username/public_html/form_tools/global/api/api.php) [function.require-once]: failed to open stream: No such file or directory in /home/optionsf/public_html/vendorregister2.php on line 2
Fatal error: require_once() [function.require]: Failed opening required 'domain.com/username/public_html/form_tools/global/api/api.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/optionsf/public_html/vendorregister2.php on line 2
I've set execute permissions on the file. And of course the correct error message includes my domain and username.
Can anyone tell me what I'm doing wrong here?
Thank you.