I just dl'd v2.03 and installed on a Cobalt Raq4 with PHP and MySQL.
When I run the scripts I get to the end without problems when using v2.03, however, the forms displayed don't contain any of the fields? The lines are there, as are the buttons but no place to input into the fields?
So I downloaded v2.0 and tried that, and now I get:
The following errors occured while processing your request:
[Field No: 1] The 'Field Name' for field no. 1 was left blank.
If I actually do get to the end of the script, the same problem of no input boxes appears.
I am only trying a short test form at this point to iron out the problems.
In each case, I had 3 items, all text fields, no requires, and email only as the selected option for the data?
Any ideas?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry about this, v2.03 seems to be pretty buggy, i've been getting a lot of complaints :P You should try out v2.02, which is the latest stable version with the _exact same features_ as v2.03 . The new version, v2.03, was a hack that attemps to fix the global_registers problem in the new version of PHP extensions. I'm guessing you have the newer version of PHP, thats why v2.0 doesn't get beyond the first input stage.
I'm trying to find some time to sit down and fix the probs in v2.03, but I'm not sure when exactly I can release this new version. Considering the work for a brand new version, an XML-based form generation solution has already started.
I suggest you try v2.02, if that works.. graet.. if not, you have a couple of options.
1) Wait till I release a fix
2) Install a slightly older version of PHP (such 4.1.2)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-01-15
Ok, I installed the program on another one of my servers, with an older version of PHP and we seem to be in business, not on the MySQL side, but at least on the email side. Since the older server is a dev box and NOT a production machine, I FTP'd the contents of the "forms" folder to my production machine after I finished the wizard and they work.
Now, two questions:
1) in the mail that comes to me from the script it says it is from "phpFormGenerator@hostname.myISPhost.com"
the "hostname.myISPhost.com" being the name of my machine. My question is, where is this defined and how can I change it? I am placing the forms on a Virtual Server, so I don't want the real hostname to show...
2) if I choose to use file management, like storing the data in a text file, not MySQL, what permissions should I set on which file to allow this to work?
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
First of all, I've released a new version, v2.04, which will work on the newer PHP versions, so you can go ahead and install the program on your production machine.
As far as the 'mail from a specific host' issue is concerned, that is defined in your php.ini file. If it is set to localhost, or your machine hostname, thats what you're going to get. Now.. if you would like to make the program seem like its sending mail from some other domain, you will need to add an extra paramter to the process.php file that is generated by the program. In order to do this, create your form thru the program wizard. Next open up process.php file and find the line that says something like:
mail("me@my.com","Form Submitted at your website",$message,"From: phpFormGenerator");
Change the "From: phpFormGenerator" to whatever you want, and that will be where the form will look like its coming from. For example, you could do
mail("musawir@ali.tf","Form Submitted at your website",$message,"Some Dude <me@myhome.com>\r\n");
Notice the \r\n , that need to be there so make sure you add those too.
For the file based database, you must give read+write permissions (chmod 777) the entire 'forms' directory and _everything_ thats in it. If you're using unix, then just change into the phpform directory and type: chmod -R 777 forms
and that will fix the file permissions that are needed for a fully functional installation.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Some corrections, this stupid forum seems to be changing what i'm typing. In the above example:
mail("musawir@ali.tf","Form Submitted at your website",$message,"From: Some Dude <me@myhome.com>\r\n");
Notice the From: that is missing in the previous post's example.. it needs to be there. Also, there is no ; (semicolon) after \r\n" , the forum seems to be adding it by default.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I just dl'd v2.03 and installed on a Cobalt Raq4 with PHP and MySQL.
When I run the scripts I get to the end without problems when using v2.03, however, the forms displayed don't contain any of the fields? The lines are there, as are the buttons but no place to input into the fields?
So I downloaded v2.0 and tried that, and now I get:
The following errors occured while processing your request:
[Field No: 1] The 'Field Name' for field no. 1 was left blank.
If I actually do get to the end of the script, the same problem of no input boxes appears.
I am only trying a short test form at this point to iron out the problems.
In each case, I had 3 items, all text fields, no requires, and email only as the selected option for the data?
Any ideas?
Sorry about this, v2.03 seems to be pretty buggy, i've been getting a lot of complaints :P You should try out v2.02, which is the latest stable version with the _exact same features_ as v2.03 . The new version, v2.03, was a hack that attemps to fix the global_registers problem in the new version of PHP extensions. I'm guessing you have the newer version of PHP, thats why v2.0 doesn't get beyond the first input stage.
I'm trying to find some time to sit down and fix the probs in v2.03, but I'm not sure when exactly I can release this new version. Considering the work for a brand new version, an XML-based form generation solution has already started.
I suggest you try v2.02, if that works.. graet.. if not, you have a couple of options.
1) Wait till I release a fix
2) Install a slightly older version of PHP (such 4.1.2)
If you would like to see phpFormGenerator in action, try out the demo page: http://phpformgen.sourceforge.net/phpform
good luck
Ok, I installed the program on another one of my servers, with an older version of PHP and we seem to be in business, not on the MySQL side, but at least on the email side. Since the older server is a dev box and NOT a production machine, I FTP'd the contents of the "forms" folder to my production machine after I finished the wizard and they work.
Now, two questions:
1) in the mail that comes to me from the script it says it is from "phpFormGenerator@hostname.myISPhost.com"
the "hostname.myISPhost.com" being the name of my machine. My question is, where is this defined and how can I change it? I am placing the forms on a Virtual Server, so I don't want the real hostname to show...
2) if I choose to use file management, like storing the data in a text file, not MySQL, what permissions should I set on which file to allow this to work?
Thanks.
First of all, I've released a new version, v2.04, which will work on the newer PHP versions, so you can go ahead and install the program on your production machine.
As far as the 'mail from a specific host' issue is concerned, that is defined in your php.ini file. If it is set to localhost, or your machine hostname, thats what you're going to get. Now.. if you would like to make the program seem like its sending mail from some other domain, you will need to add an extra paramter to the process.php file that is generated by the program. In order to do this, create your form thru the program wizard. Next open up process.php file and find the line that says something like:
mail("me@my.com","Form Submitted at your website",$message,"From: phpFormGenerator");
Change the "From: phpFormGenerator" to whatever you want, and that will be where the form will look like its coming from. For example, you could do
mail("musawir@ali.tf","Form Submitted at your website",$message,"Some Dude <me@myhome.com>\r\n");
Notice the \r\n , that need to be there so make sure you add those too.
For the file based database, you must give read+write permissions (chmod 777) the entire 'forms' directory and _everything_ thats in it. If you're using unix, then just change into the phpform directory and type: chmod -R 777 forms
and that will fix the file permissions that are needed for a fully functional installation.
Some corrections, this stupid forum seems to be changing what i'm typing. In the above example:
mail("musawir@ali.tf","Form Submitted at your website",$message,"From: Some Dude <me@myhome.com>\r\n");
Notice the From: that is missing in the previous post's example.. it needs to be there. Also, there is no ; (semicolon) after \r\n" , the forum seems to be adding it by default.