Menu

Problems starting with phpformgenerator

Help
sal
2011-10-16
2013-06-03
  • sal

    sal - 2011-10-16

    Hello,

    hope you can help. Just downloaded the phpformgenerator version 2.09.

    I am trying to create a form using phpformgenerator that has various checkboxes, radioboxes, text fields and upload CV. I want to have people fill up form and have it send to my email when they click send button. I have downloaded the XAMPP 1.7.7 that includes apache, php and mySQL.
    I installed the phpformgenerator in the htdocs folder in the xampp directory, but when i go to
    http://localhost/phpform/fields.php
    i get this error after inserting number of fields;

    Notice: Undefined variable: error in C:\xampp\htdocs\phpform\fields.php on line 174

    Notice: Undefined variable: fields in C:\xampp\htdocs\phpform\fields.php on line 175

    Deprecated: Function ereg() is deprecated in C:\xampp\htdocs\phpform\fields.php on line 175
    The following errors occured while processing your request:

    Could anyone help me out why I cannot get started with this software. also when it all work ok, how to incorporate the working form to my website.

     
  • TNTEverett

    TNTEverett - 2011-10-17

    You may have any number of problems related to how XAMPP is setup.  I use Uniformserver so I can not help with XAMPP.  You can try this in any case because my new version of Uniformserver does not allow the use of "HTTP_POST_VAR". 

    Open the "global.inc.php" file and copy this line "$varname = "HTTP_{$method}_VARS";".  Paste it below that line and change it to "$varname = "_{$method}";".

    For the depricated function "ereg" you'll have to live with it unless you are willing to change every occurance of it, and you know the syntax for the replacement function "preg_match". 

     
  • sal

    sal - 2011-10-17

    Ok, I pasted the line below and when i load localhost/phpform/index.php and enter number of fields this is what i get;

    Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\phpform\global.inc.php on line 16

    any suggestion pls

    btw i am on windows 7 home.

     
  • TNTEverett

    TNTEverett - 2011-10-17

    This is a syntax error, so you made a mistake somewhere.  The "T_STRING" error usually means the line starts with a number instead of any other character. 

     
  • sal

    sal - 2011-10-17

    Ah it worked, i took the " form the front of the pasted line and also the " at the end.

    Many thanks. I can see the fields to be populated but above this is this.
    Notice: Undefined variable: error in C:\xampp\htdocs\phpform\fields.php on line 174

    Deprecated: Function ereg() is deprecated in C:\xampp\htdocs\phpform\fields.php on line 175

    However, i will populate it and see what happens. will let u know

     
  • sal

    sal - 2011-10-17

    No not good next page was quite a few lines of notice and deprecated errors, i think i will look for an alternative way to create a form that sends me a email. thanks anyway.

    Even after completing the form and hitting submit button there was error page and nothing send to my email i gave it

     
  • TNTEverett

    TNTEverett - 2011-10-17

    You have to create the form first, then when you use the form you should ge tthe email.  Are you expecting the email when you finish creating the form by mistake?  If you want me to look at the form you created (fix depreicated function), zip it up and send it to me in an email.  First use my SourceForge email and I will respond with a private email you can use to send the zip. 

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.