Warning: move_uploaded_file(./files/file_2_21481029062007.jpg): failed to open stream: Permission denied in /home/httpd/vhosts/legalfamilyaccounting.com/httpdocs/Form3/processor.php on line 8
Warning: move_uploaded_file(): Unable to move '/tmp/phpfb5pkE' to './files/file_2_21481029062007.jpg' in /home/httpd/vhosts/legalfamilyaccounting.com/httpdocs/Form3/processor.php on line 8
File creep.ru.XP.005.jpg was not uploaded.
Hi
Looks great so far. Looking forward to having an admin section though and it would be great if this could include a search facility to trawl through the database entries.
Good work!!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This tool is more than cool. Its amazing that user can create PHP from on the fly.
There are few things if added will make things better.
1. Ability to use table so user can arrange layout of form fields
2. Ability to add text inside a form such as description or title or special instructions.
3. Ability to put a function for a radio option, functions such as if, answer is yes then rest of the forms fields or section are required, or if No then rest of forms fields or sections are not required
4. Ability to display the entered information so user can confirm correctness' before submitting.
5. Ability to insert field or function inside a long function without using arrows
6. Ability to use Images as Background on the form, or use of logos
7. If there is a possibility of making a module, component for Joomla, mambo that will perform same operation.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Did you select the output as email? If I remember correctly, there were three options:
email
file
sql
I had the file version, but changed it to email by removing and replacing a line in the processor.php:
mail("me@example.com.us","Recruit Application","
I see in the sql version it has this line in the processor.php file just below the inserts:
mail("optionalemail","phpFormGenerator - Form submission","Form data:
Just put your email in the "optionalemail" and I bet you will get the info. (probably true with the file version too, but I'm not sure.)
SAR
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I make three different forms:
1. With MySQL I create a file called config.inc.php hoy you suggest in other post. This feature works excelent.
2. With Mail works excelent.
3. With file, I make a file called mails.txt and put it in same directory (principal of this files) but it no records the info sended from the form. What I make wrong?
In three features I can't upload a file.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The generator is very cool but I do have one question,
I may be missing it but I'm not seeing any validation with Perl Compatible Regular Expressions. It would come in handy for collecting correct
information as well as site security. Any plans to incorperate them?
Steve
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I had a few problems and requests though, I'll start with my problems.
-----------------------------------------
Problems:
1. When creating the form, if you use a protected word (post, get, or quotes...If the answer is "Yes"...) processor.php interprets that as code and gives you errors.
I used "Yes" in one of my form titles and processor.php gave me an error. Correcting that problem would go a long way to making this project very successful.
2. When using check boxes I have the following problem. Lets say I have the form laid out as such, the []'s are used to represent check boxes:
Pick all that interest you:
[] Option a
[] Option b
[] Option c
[] Option d
In my output, I will receive this if only one is checked:
Option a,,,
Note that there are three commas following the answer.
If two are checked, I will receive the following:
Option a, Option b,,
Again, the commas. The other problem is everything checked comes out on a single line. Not a horrific problem, but IMHO they should be followed by line breaks.
-----------------------------------------
Requests.
I like to get IP and date information when a form is submitted, either I missed that or it isn't there. I had to add that to my processor.php file manually as such:
Submitted............: " . date("l, F j, Y") . "
Ip Address...........: " . $_SERVER['REMOTE_ADDR'] . "
Additional on IP.....: " . gethostbyaddr($ip) . "
It would be great if there was an option on the form setup screen for including such items.
-----------------------------------------
Thanks again for a great project,
SAR
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I got the array thing too, but this was because I had used the Up/Down arrow option to move a question up in my form. This caused the fields to be mismatched in the code - a bug mentioned in an earlier post. I got it to work by rematching the fields in the code, but you might just as well start over from scratch. Just be sure not to use the up/down arrow feature.
So...um...when might this bug be fixed?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you choose just "File" then this is the extent of the processor.php file:
<?php
$where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));
include("confirm.html");
?>
The only assumption we can make is that this is one of two things.
1.) A bug.
2.) An undeveloped feature.
In either case without access to any of the source code there can be only one of two solutions.
1.) Wait!
2.) Write the code yourself!
Borrowing from the previous revision 2.09 you could add the following to your processor.php:
This just adds the first 3 fields and does not add headers to the file. There is also no admin to view the file data. More work would have to be done to allow use of the old admin since there is no admin in the current version 3.0.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm still confused about the file upload. I would assume the form processor would write the file path to the proper field in my database so I can grab it later. My file uploads fine, the notification email does ID the new path and filename, but the file field in my database remains null.
I tried messing with the snippet borrowed from 2.09 as mentioned, but I guess I don't understand the code well enough to figure it out myself. Is there something in processor.php that needs to be changed or come out if I put that in? Where? Any help would be appreciated!!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Now I am confused! Is this your first post? The thread you are on does not mention file upload and I can not locate any earlier post from you.
Sorry, can you explain what you are having trouble with?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry. I can see how I confused you. It was my first post and I was replying to a post where you were explaining it to someone else.
Concerning the upload file feature, no information about the file location or new filename is sent to my database, just via the email notification. The rest of the form and processor works like a charm. Is the form processor supposed to write the file path to my database so I can retrieve it later? I'm only able to find out the information from the email notification.
I tried messing with the snippet borrowed from 2.09 as you mentioned below, but I guess I don't understand the code well enough to figure it out myself. Is there something in processor.php that needs to be changed or come out if I put that in? Where? Any help would be appreciated!!
I UNDERSTOOD THIS TO BE YOUR EARLIER SOLUTION TO kolbester (kolbestser) - 2007-07-23 20:15
If you choose just "File" then this is the extent of the processor.php file:
<?php
$where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));
include("confirm.html");
?>
The only assumption we can make is that this is one of two things.
1.) A bug.
2.) An undeveloped feature.
In either case without access to any of the source code there can be only one of two solutions.
1.) Wait!
2.) Write the code yourself!
Borrowing from the previous revision 2.09 you could add the following to your processor.php:
This just adds the first 3 fields and does not add headers to the file. There is also no admin to view the file data. More work would have to be done to allow use of the old admin since there is no admin in the current version 3.0.
Thanks for listening
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The file feature in 3.0 is not quite ready yet.
The other post you referred to was not related to file uploads to SQL. The solution was to create a file database of the fields not ready in 3.0.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm afraid your form.html and processor.php files do not agree on which variables belong together. This must be a bug from what I can see. Further investigation into how the form was generated with the source code would be required to identify why this happened.
Without access to the source code all I can do is tell you why this specific thing does not work.
Try this as a quick test:
in the processor.php file find these lines
// Checkbox handling
$field_32_opts = $_POST['field_32'][0].",". $_POST['field_32'][1].",". $_POST['field_32'][2].",". $_POST['field_32'][3].",". $_POST['field_32'][4].",". $_POST['field_32'][5].",". $_POST['field_32'][6].",". $_POST['field_32'][7].",". $_POST['field_32'][8].",". $_POST['field_32'][9].",". $_POST['field_32'][10].",". $_POST['field_32'][11];
Change to this
// Checkbox handling
$field_32_opts = $_POST['field_3'][0].",". $_POST['field_3'][1].",". $_POST['field_3'][2].",". $_POST['field_3'][3].",". $_POST['field_3'][4].",". $_POST['field_3'][5].",". $_POST['field_3'][6].",". $_POST['field_3'][7].",". $_POST['field_3'][8].",". $_POST['field_3'][9].",". $_POST['field_3'][10].",". $_POST['field_3'][11];
This will show you it can work but because of the mixing of variable names for this checkbox it makes me believe there will be more issues with your form.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am also having issues with mis matched fields after moving a field. Also how do you have both file stored data & email data.
I can't upload pictures; I get this message:
Warning: move_uploaded_file(./files/file_2_21481029062007.jpg): failed to open stream: Permission denied in /home/httpd/vhosts/legalfamilyaccounting.com/httpdocs/Form3/processor.php on line 8
Warning: move_uploaded_file(): Unable to move '/tmp/phpfb5pkE' to './files/file_2_21481029062007.jpg' in /home/httpd/vhosts/legalfamilyaccounting.com/httpdocs/Form3/processor.php on line 8
File creep.ru.XP.005.jpg was not uploaded.
Form located at:
http://www.legalfamilyaccounting.com/Form3/form.html
Any info would be great.
Flipback
This is likely to be a folder permissions issue. Check this first.
I can not view check box items in mysql. why?
Hi
Looks great so far. Looking forward to having an admin section though and it would be great if this could include a search facility to trawl through the database entries.
Good work!!
This tool is more than cool. Its amazing that user can create PHP from on the fly.
There are few things if added will make things better.
1. Ability to use table so user can arrange layout of form fields
2. Ability to add text inside a form such as description or title or special instructions.
3. Ability to put a function for a radio option, functions such as if, answer is yes then rest of the forms fields or section are required, or if No then rest of forms fields or sections are not required
4. Ability to display the entered information so user can confirm correctness' before submitting.
5. Ability to insert field or function inside a long function without using arrows
6. Ability to use Images as Background on the form, or use of logos
7. If there is a possibility of making a module, component for Joomla, mambo that will perform same operation.
I'm having a little problem. Love the ease of use etc; but...
1.I'm not getting the emails from test forms
2. processor.php is not returning control to the main site
Any ideas?
Did you select the output as email? If I remember correctly, there were three options:
email
file
sql
I had the file version, but changed it to email by removing and replacing a line in the processor.php:
mail("me@example.com.us","Recruit Application","
I see in the sql version it has this line in the processor.php file just below the inserts:
mail("optionalemail","phpFormGenerator - Form submission","Form data:
Just put your email in the "optionalemail" and I bet you will get the info. (probably true with the file version too, but I'm not sure.)
SAR
I make three different forms:
1. With MySQL I create a file called config.inc.php hoy you suggest in other post. This feature works excelent.
2. With Mail works excelent.
3. With file, I make a file called mails.txt and put it in same directory (principal of this files) but it no records the info sended from the form. What I make wrong?
In three features I can't upload a file.
I've tried to build out 2 forms... both do not collect the data ((e-mail post) properly.
http://community.ksmq.org/vintage/form.html
http://community.ksmq.org/stories_fromthe_homefront/form.html
It's pushing the answers down 1 line and messing up others.
Thoughts?
Looks good.
Are you able to add a dropdown, from which the selection made will polulate the next drop down box based on that selection?
The generator is very cool but I do have one question,
I may be missing it but I'm not seeing any validation with Perl Compatible Regular Expressions. It would come in handy for collecting correct
information as well as site security. Any plans to incorperate them?
Steve
You are not very clear on your request. There have been entire books written on Perl Regular Expresions. What specifically are you asking for?
First off, GREAT project.
I had a few problems and requests though, I'll start with my problems.
-----------------------------------------
Problems:
1. When creating the form, if you use a protected word (post, get, or quotes...If the answer is "Yes"...) processor.php interprets that as code and gives you errors.
I used "Yes" in one of my form titles and processor.php gave me an error. Correcting that problem would go a long way to making this project very successful.
2. When using check boxes I have the following problem. Lets say I have the form laid out as such, the []'s are used to represent check boxes:
Pick all that interest you:
[] Option a
[] Option b
[] Option c
[] Option d
In my output, I will receive this if only one is checked:
Option a,,,
Note that there are three commas following the answer.
If two are checked, I will receive the following:
Option a, Option b,,
Again, the commas. The other problem is everything checked comes out on a single line. Not a horrific problem, but IMHO they should be followed by line breaks.
-----------------------------------------
Requests.
I like to get IP and date information when a form is submitted, either I missed that or it isn't there. I had to add that to my processor.php file manually as such:
Submitted............: " . date("l, F j, Y") . "
Ip Address...........: " . $_SERVER['REMOTE_ADDR'] . "
Additional on IP.....: " . gethostbyaddr($ip) . "
It would be great if there was an option on the form setup screen for including such items.
-----------------------------------------
Thanks again for a great project,
SAR
great form...
when i create a check box (in my case with 18 different options), i get the entry "array" in the database instead of the name of the checkd boxes...
I got the array thing too, but this was because I had used the Up/Down arrow option to move a question up in my form. This caused the fields to be mismatched in the code - a bug mentioned in an earlier post. I got it to work by rematching the fields in the code, but you might just as well start over from scratch. Just be sure not to use the up/down arrow feature.
So...um...when might this bug be fixed?
has anyone managed to get the "write to file" option to work?
i can get the email and the db part to show up in the process.php file (and work) but when i choose "file" nothing happens.
any advise will be appreciated.
thanks.
If you choose just "File" then this is the extent of the processor.php file:
<?php
$where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));
include("confirm.html");
?>
The only assumption we can make is that this is one of two things.
1.) A bug.
2.) An undeveloped feature.
In either case without access to any of the source code there can be only one of two solutions.
1.) Wait!
2.) Write the code yourself!
Borrowing from the previous revision 2.09 you could add the following to your processor.php:
$make=fopen("files/data.dat","a");
$to_put="";
$to_put .= $_POST['field_1']"|".$_POST['field_2']."|".$_POST['field_3']."
";
fwrite($make,$to_put);
This just adds the first 3 fields and does not add headers to the file. There is also no admin to view the file data. More work would have to be done to allow use of the old admin since there is no admin in the current version 3.0.
I'm still confused about the file upload. I would assume the form processor would write the file path to the proper field in my database so I can grab it later. My file uploads fine, the notification email does ID the new path and filename, but the file field in my database remains null.
I tried messing with the snippet borrowed from 2.09 as mentioned, but I guess I don't understand the code well enough to figure it out myself. Is there something in processor.php that needs to be changed or come out if I put that in? Where? Any help would be appreciated!!
Now I am confused! Is this your first post? The thread you are on does not mention file upload and I can not locate any earlier post from you.
Sorry, can you explain what you are having trouble with?
Sorry. I can see how I confused you. It was my first post and I was replying to a post where you were explaining it to someone else.
Concerning the upload file feature, no information about the file location or new filename is sent to my database, just via the email notification. The rest of the form and processor works like a charm. Is the form processor supposed to write the file path to my database so I can retrieve it later? I'm only able to find out the information from the email notification.
I tried messing with the snippet borrowed from 2.09 as you mentioned below, but I guess I don't understand the code well enough to figure it out myself. Is there something in processor.php that needs to be changed or come out if I put that in? Where? Any help would be appreciated!!
I UNDERSTOOD THIS TO BE YOUR EARLIER SOLUTION TO kolbester (kolbestser) - 2007-07-23 20:15
If you choose just "File" then this is the extent of the processor.php file:
<?php
$where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));
include("confirm.html");
?>
The only assumption we can make is that this is one of two things.
1.) A bug.
2.) An undeveloped feature.
In either case without access to any of the source code there can be only one of two solutions.
1.) Wait!
2.) Write the code yourself!
Borrowing from the previous revision 2.09 you could add the following to your processor.php:
$make=fopen("files/data.dat","a");
$to_put="";
$to_put .= $_POST['field_1']"|".$_POST['field_2']."|".$_POST['field_3']."
";
fwrite($make,$to_put);
This just adds the first 3 fields and does not add headers to the file. There is also no admin to view the file data. More work would have to be done to allow use of the old admin since there is no admin in the current version 3.0.
Thanks for listening
Check this post:
https://sourceforge.net/forum/message.php?msg_id=4440974
The file feature in 3.0 is not quite ready yet.
The other post you referred to was not related to file uploads to SQL. The solution was to create a file database of the fields not ready in 3.0.
I see. Now that solution makes more sense. Thank you.
Check boxes don't work on my form under extra's, when they email though all i get is Extras: ,,,,,,,,,,,
http://www.phpformgen.com/page_home.php?form_id=5492
I'm afraid your form.html and processor.php files do not agree on which variables belong together. This must be a bug from what I can see. Further investigation into how the form was generated with the source code would be required to identify why this happened.
Without access to the source code all I can do is tell you why this specific thing does not work.
Try this as a quick test:
in the processor.php file find these lines
// Checkbox handling
$field_32_opts = $_POST['field_32'][0].",". $_POST['field_32'][1].",". $_POST['field_32'][2].",". $_POST['field_32'][3].",". $_POST['field_32'][4].",". $_POST['field_32'][5].",". $_POST['field_32'][6].",". $_POST['field_32'][7].",". $_POST['field_32'][8].",". $_POST['field_32'][9].",". $_POST['field_32'][10].",". $_POST['field_32'][11];
Change to this
// Checkbox handling
$field_32_opts = $_POST['field_3'][0].",". $_POST['field_3'][1].",". $_POST['field_3'][2].",". $_POST['field_3'][3].",". $_POST['field_3'][4].",". $_POST['field_3'][5].",". $_POST['field_3'][6].",". $_POST['field_3'][7].",". $_POST['field_3'][8].",". $_POST['field_3'][9].",". $_POST['field_3'][10].",". $_POST['field_3'][11];
This will show you it can work but because of the mixing of variable names for this checkbox it makes me believe there will be more issues with your form.