I have created a form using v 3.0 online and have downloaded it to my local server. When I run form.html and fill in the data and hit submit I get a complaint that in processor.php line 5 it can not find config.inc.php. Alas this file is not visible in the formxxxx directory. So, what am I missing? Is this file not the file which supplies the needed info for mysql access? Other things?
Maybe I don't have straight the order in which the built script is to be run locally? The only files sans directories I see are confirm.html, form.html, install.php, monofont.ttf, processor.php, and style.css. Noconfig.inc.php.
Please advise.
Thanks.
Comer
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't know enough about the new 3.0 generator to tell you how or why this file was not created.
You have two choices to start figuring out what is missing.
1.) comment out the include statement in the processor.php file
2.) create a blank version of this file in the same folder as the processor.php file
Otherwise if you send me a copy of your processor.php file I can create a template for you to fill in that will satisfy the config file requirements.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the suggestions. Taking the bull by its horns I went ahead and created a config.inc.php file containing just the three variable values which are used in the next line of processor.php. Namely, the $db_host, $db_user, and $db_pass were populated with the values relevant to my system. The name of the db and a table therein were not populated. The current version of the script seemed to go though without complaint.
Would you let me know what other variables and values should be included in the config.inc.php file? If these stripped down versions of the scripts work, then I will get serious about making a flavor which does what I want: a form to take in client family name, client first name, and client phone number and then use those data to select the contents of the table client_data in my database. The purpose is to be able to look at the current data for a given client [there are 18 fields per client] and fill in new data in one of the relevant boxes and submit the new data to update the client_data table.
The purpose of what I am trying to do is to write scripts to help manage a food pantry database, a totally volunteer effort at a local Episcopal Church. I am in the process of automating what has been laboriously done by hand. The numbers of people needing food these days is increasing and our group could benefit from a php script which does the above mentioned things. There will be other things I want it to do but first things first. I have taken a crack at writing the php myself but the process is slow. I now know how to do some things and was hoping that phpFormGenerator would help me streamline this effort.
Thanks.
Comer
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The config file is built during form generation and only includes the variables necessary to support your form.
If your form works then there is no reason to name other variables which would not be used.
Let me know if you need additional help.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The older version 2.09 wrote the file during generation. The new version 3.0 creates the file as part of the install.php as shown by this confirmation in the install.php file.
echo "Configuration file written (config.inc.php). ";
According to this code the file open and file write occur in the same directory as the install.php file.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have created a form using v 3.0 online and have downloaded it to my local server. When I run form.html and fill in the data and hit submit I get a complaint that in processor.php line 5 it can not find config.inc.php. Alas this file is not visible in the formxxxx directory. So, what am I missing? Is this file not the file which supplies the needed info for mysql access? Other things?
Maybe I don't have straight the order in which the built script is to be run locally? The only files sans directories I see are confirm.html, form.html, install.php, monofont.ttf, processor.php, and style.css. Noconfig.inc.php.
Please advise.
Thanks.
Comer
I don't know enough about the new 3.0 generator to tell you how or why this file was not created.
You have two choices to start figuring out what is missing.
1.) comment out the include statement in the processor.php file
2.) create a blank version of this file in the same folder as the processor.php file
Otherwise if you send me a copy of your processor.php file I can create a template for you to fill in that will satisfy the config file requirements.
TNT,
Thanks for the suggestions. Taking the bull by its horns I went ahead and created a config.inc.php file containing just the three variable values which are used in the next line of processor.php. Namely, the $db_host, $db_user, and $db_pass were populated with the values relevant to my system. The name of the db and a table therein were not populated. The current version of the script seemed to go though without complaint.
Would you let me know what other variables and values should be included in the config.inc.php file? If these stripped down versions of the scripts work, then I will get serious about making a flavor which does what I want: a form to take in client family name, client first name, and client phone number and then use those data to select the contents of the table client_data in my database. The purpose is to be able to look at the current data for a given client [there are 18 fields per client] and fill in new data in one of the relevant boxes and submit the new data to update the client_data table.
The purpose of what I am trying to do is to write scripts to help manage a food pantry database, a totally volunteer effort at a local Episcopal Church. I am in the process of automating what has been laboriously done by hand. The numbers of people needing food these days is increasing and our group could benefit from a php script which does the above mentioned things. There will be other things I want it to do but first things first. I have taken a crack at writing the php myself but the process is slow. I now know how to do some things and was hoping that phpFormGenerator would help me streamline this effort.
Thanks.
Comer
The config file is built during form generation and only includes the variables necessary to support your form.
If your form works then there is no reason to name other variables which would not be used.
Let me know if you need additional help.
TNTEverett sayes: The config file is built during form generation !
Where i can find this file plz?!
i did not see it any where
thanks
The older version 2.09 wrote the file during generation. The new version 3.0 creates the file as part of the install.php as shown by this confirmation in the install.php file.
echo "Configuration file written (config.inc.php). ";
According to this code the file open and file write occur in the same directory as the install.php file.