Hi I just created a form and attempted to send some info to be logged into a MySQL database.
I get the following error:
Warning: Division by zero in /home/digitale/public_html/phpform/forms/process.php on line 4
The following errors occured while processing your form input.
You did not enter one or more of the required fields. Please go back and try again.
Steph
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2002-10-18
Im using the latest version 1.0.4
Steph
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you mark a field as "required", you _need_ to fill that out or the form processor will give an error saying that all the fields weren't filled out. Now depending on your php.ini configuration, it must give some extra warnings. You can turn those _extra warnings_ off in your php.ini file.
Having said that, I don't think there is any place in the code that should trigger a division by zero error. Please try your exact input on the demo site at: http://phpformgen.sourceforge.net/phpform . For MySQL DB info, use the following:
hostname: mysql.sourceforge.net
username: phpformgen
password: (blank, leave this field empty)
db name: phpformgen
Use an "extraordinary" table name because it might be taken since a lot of other users try their stuff on the demo site and create test database tables.
Let me know if this works. If not, i'll investigate into this and fix it up for v2.0 . BTW, only a few more days to v2.0 release! it has a bunch of extra features such as file upload, admin portal utility, etc.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi I just created a form and attempted to send some info to be logged into a MySQL database.
I get the following error:
Warning: Division by zero in /home/digitale/public_html/phpform/forms/process.php on line 4
The following errors occured while processing your form input.
You did not enter one or more of the required fields. Please go back and try again.
Steph
Im using the latest version 1.0.4
Steph
I noticed that you have to put something in the fields even if you aren't going to use that field. Mine doesn't work either though.
Marie Alline
If you mark a field as "required", you _need_ to fill that out or the form processor will give an error saying that all the fields weren't filled out. Now depending on your php.ini configuration, it must give some extra warnings. You can turn those _extra warnings_ off in your php.ini file.
Having said that, I don't think there is any place in the code that should trigger a division by zero error. Please try your exact input on the demo site at: http://phpformgen.sourceforge.net/phpform . For MySQL DB info, use the following:
hostname: mysql.sourceforge.net
username: phpformgen
password: (blank, leave this field empty)
db name: phpformgen
Use an "extraordinary" table name because it might be taken since a lot of other users try their stuff on the demo site and create test database tables.
Let me know if this works. If not, i'll investigate into this and fix it up for v2.0 . BTW, only a few more days to v2.0 release! it has a bunch of extra features such as file upload, admin portal utility, etc.