Jan 30th, 2013, 9:14 AM
(This post was last modified: Jan 30th, 2013, 1:09 PM by pilsnermonkey.)
I created a form and thankyou page in dreamweaver. They have been ftp'd and reside at: http://www.mywebsite.com/forms/myfolder/myform.php and
http://www.mywebsite.com/forms/thankyou.php
I logged into Form Tools Admin as admin and tried to set up the form thusly:
Add Form --> External Form (Option 2. Code — using the Form Tools API) -->
In the add form dialog sequence in Form Info, I entered myform.php as form name
chose "no" to 'is form multi-page form' because I have a single page form
and added this url in the 'Form URL' :
http://www.mywebsite.com/forms/myfolder/myform.php indicating form has public access. My 'forms folder has '755' permissions: public can read & execute.
When I click 'Check URL' I get the following warnings & errors:
Warning: require_once() [function.require-once]: URL file-access is disabled in the server configuration in /home/myserverloginid/public_html/forms/myfolder/myform.php on line 2
and
Warning: require_once(http://www.mywebsite.com/form_tools/global/api/api.php) [function.require-once]: failed to open stream: no suitable wrapper could be found in /home/myserverloginid/public_html/forms/myfolder/myform.php on line 2
and
Fatal error: require_once() [function.require]: Failed opening required 'http://www.mywebsite.com/form_tools/global/api/api.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/myserverloginid/public_html/forms/myfolder/myform.php on line 2
This is the php test code I added to myform.php
<?php
require_once("http://www.mywebsite.com/form_tools/global/api/api.php");
$fields = ft_api_init_form_page("", "test");
?>
and this is the code I added to thankyou.php
<?php
require_once("http://www.stgeorgesinthepines.org/form_tools/global/api/api.php");
$fields = ft_api_init_form_page();
ft_api_clear_form_sessions();
?>
I have ***NOT*** included the finalize code yet to myform.php:
"finalize" => true
or the close session code on thankyou.php:
<?php
require_once("path/to/global/api/api.php");
$fields = ft_api_init_form_page();
ft_api_clear_form_sessions();
?>
I get the same messages if go directly to the url of my form:
http://www.mywepage.com/forms/myfolder/myform.php
I have changed permissions on the default/cache folder in themes to '777'
my 'forms' folder where the forms reside has '755' permissions: public can read & execute.
config.php looks like this:
<?php
// main program paths - no trailing slashes!
$g_root_url = "http://mywebsite.com/form_tools";
$g_root_dir = "/home/myserverloginid/public_html/form_tools";
// database settings
$g_db_hostname = "localhost";
$g_db_name = "mydb_forms";
$g_db_username = "myuserloginid_forms";
$g_db_password = "mypassword";
$g_table_prefix = "ft_";
?>
If anyone has a moment to help me sort this I'd greatly appreciate it.
Thank you.
(Sorry, add code function does not seem to be working for me n this forum.
http://www.mywebsite.com/forms/thankyou.php
I logged into Form Tools Admin as admin and tried to set up the form thusly:
Add Form --> External Form (Option 2. Code — using the Form Tools API) -->
In the add form dialog sequence in Form Info, I entered myform.php as form name
chose "no" to 'is form multi-page form' because I have a single page form
and added this url in the 'Form URL' :
http://www.mywebsite.com/forms/myfolder/myform.php indicating form has public access. My 'forms folder has '755' permissions: public can read & execute.
When I click 'Check URL' I get the following warnings & errors:
Warning: require_once() [function.require-once]: URL file-access is disabled in the server configuration in /home/myserverloginid/public_html/forms/myfolder/myform.php on line 2
and
Warning: require_once(http://www.mywebsite.com/form_tools/global/api/api.php) [function.require-once]: failed to open stream: no suitable wrapper could be found in /home/myserverloginid/public_html/forms/myfolder/myform.php on line 2
and
Fatal error: require_once() [function.require]: Failed opening required 'http://www.mywebsite.com/form_tools/global/api/api.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/myserverloginid/public_html/forms/myfolder/myform.php on line 2
This is the php test code I added to myform.php
<?php
require_once("http://www.mywebsite.com/form_tools/global/api/api.php");
$fields = ft_api_init_form_page("", "test");
?>
and this is the code I added to thankyou.php
<?php
require_once("http://www.stgeorgesinthepines.org/form_tools/global/api/api.php");
$fields = ft_api_init_form_page();
ft_api_clear_form_sessions();
?>
I have ***NOT*** included the finalize code yet to myform.php:
"finalize" => true
or the close session code on thankyou.php:
<?php
require_once("path/to/global/api/api.php");
$fields = ft_api_init_form_page();
ft_api_clear_form_sessions();
?>
I get the same messages if go directly to the url of my form:
http://www.mywepage.com/forms/myfolder/myform.php
I have changed permissions on the default/cache folder in themes to '777'
my 'forms' folder where the forms reside has '755' permissions: public can read & execute.
config.php looks like this:
<?php
// main program paths - no trailing slashes!
$g_root_url = "http://mywebsite.com/form_tools";
$g_root_dir = "/home/myserverloginid/public_html/form_tools";
// database settings
$g_db_hostname = "localhost";
$g_db_name = "mydb_forms";
$g_db_username = "myuserloginid_forms";
$g_db_password = "mypassword";
$g_table_prefix = "ft_";
?>
If anyone has a moment to help me sort this I'd greatly appreciate it.
Thank you.
(Sorry, add code function does not seem to be working for me n this forum.