Does anyone use phpFormGenerator? Step 1 error-won't accept any #

tinart

New Member
Messages
3
Reaction score
0
Points
1
Just wondering if there's anyone who can advise me about this script from x10/softaculous section. I did check the SourceForge support section for the software...
doesn't seem to be used since 2012, no help.
Is anyone using this? Can I get something someplace else to use and have it load results into a database on my site?... Anyway here's what happens:
Step 1: number of fields v2.09
please enter the number of fields your form is going to have. enter only numeric digits. the number should be between 1 - 99

35 (tried many different #s)
The following errors occured while processing your request:
You did not enter a valid number. Please use a number between 1 and 99.
**It does not matter what # I put into the form, Always get this message and cannot go further
Thanks to anyone helping!
 

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
It's a very old script that uses things that are no longer part of PHP (and haven't been for quite a while). In this case, the problem is $HTTP_POST_VARS, which was dropped in PHP version 5.3 (and deprecated before that). You would need to modify global.inc.php for a quick fix:
PHP:
$varname = "HTTP_{$method}_VARS";
needs to become:
PHP:
$varname = "_{$method}";
...but that won't last long, since the ereg() regular expression functions that most of the script relies on is already deprecated and won't be in future versions of PHP at all. That not only affects the form builder functionality, it also affects the forms that it creates (since it builds in form validation according to the information you entered in the form builder, and that validation also relies on ereg()). In other words, unless you've got the PHP skills to build the forms and validators you need without using the form builder, you won't have the skills you need to fix the form builder.
 

tinart

New Member
Messages
3
Reaction score
0
Points
1
It's a very old script that uses things that are no longer part of PHP (and haven't been for quite a while). In this case, the problem is $HTTP_POST_VARS, which was dropped in PHP version 5.3 (and deprecated before that). You would need to modify global.inc.php for a quick fix:
PHP:
$varname = "HTTP_{$method}_VARS";
needs to become:
PHP:
$varname = "_{$method}";
...but that won't last long, since the ereg() regular expression functions that most of the script relies on is already deprecated and won't be in future versions of PHP at all. That not only affects the form builder functionality, it also affects the forms that it creates (since it builds in form validation according to the information you entered in the form builder, and that validation also relies on ereg()). In other words, unless you've got the PHP skills to build the forms and validators you need without using the form builder, you won't have the skills you need to fix the form builder.
I really appreciate your reply and thank you for sharing your knowledge with me!
O.K., I won't waste my time w/that anymore...
 

bradleyx

Member
Messages
108
Reaction score
1
Points
18
ya that thing is old. there not even a update for it anymore. the creator gave up on it.

to be honest just best to make a script that validates, sends the data on your own. that way you know it works, and how it was built.

http://www.inmotionhosting.com/supp...mysql/how-to-create-a-custom-php-contact-form

this link might help if u need some help with validation and also how to send through mail. i use database and mail. to my opinion contact pages should be through mail and database. mail to the user who sent it and to the admin(notifier) and also posted in a database so a admin/mod can check it out on the site.
 
Top