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

Discussion in 'Scripts, 3rd Party Apps, and Programming' started by tinart, Aug 18, 2014.

  1. tinart

    tinart New Member

    Messages:
    3
    Likes Received:
    0
    Trophy 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!
     
  2. essellar

    essellar Community Advocate Community Support

    Messages:
    3,295
    Likes Received:
    227
    Trophy 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.
     
  3. bdistler

    bdistler Well-Known Member Prime Account

    Messages:
    3,534
    Likes Received:
    195
    Trophy Points:
    63
    delete
     
    Last edited: Aug 19, 2014
  4. tinart

    tinart New Member

    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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...
     
  5. tinart

    tinart New Member

    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    alrig
    alright, thanks for the link, bookmarked it.
     
  6. bradleyx

    bradleyx Member

    Messages:
    108
    Likes Received:
    1
    Trophy 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.
     

Share This Page