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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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".
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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".
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.
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.
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
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
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.