I want to give people using one of my generated forms the option of uploading up to 6 photos. But, I also want them to only send 2 (for example) instaed of 6. So, I create the form with 6 upload fields, none of them REQUIRED). When I try to upload less than 6, I get an error message for the rest. Is there a fix to this?
Thanks for an otherwise great script.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Error checking is done in the upper part of the program (process.php). An error flag is set if something at respective places. You would be looking for this error flag ($error=1) and removing it from the places you don't want to be required.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Also, program modifications are provided as a service. Check out the project homepage for details: http://phpformgen.sourceforge.net
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-05-14
Hello. I tried getting rid of the flag ($error=1) from the file upload part of the script but it then shows:
Warning: Unable to open '' for reading: No such file or directory in /usr/webspace/iofm.net/f/l/flowerpot/stuff/ttchallenge/forms/process.php on line 82
and lists each line where the error flag was. I can't be doing this right. Can you help? Other than that, cheers on an ace script!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-05-14
Hello. I tried getting rid of the flag ($error=1) from the file upload part of the script but it then shows:
Warning: Unable to open '' for reading: No such file or directory in /usr/webspace/iofm.net/f/l/flowerpot/stuff/ttchallenge/forms/process.php on line 82
and lists each line where the error flag was. I can't be doing this right. Can you help? Other than that, cheers on an ace script!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I want to give people using one of my generated forms the option of uploading up to 6 photos. But, I also want them to only send 2 (for example) instaed of 6. So, I create the form with 6 upload fields, none of them REQUIRED). When I try to upload less than 6, I get an error message for the rest. Is there a fix to this?
Thanks for an otherwise great script.
Same problem there.
image fields are required by default. You can tinker with the generated code to remove this restriction though.
but I don't think I do. I will try though...
Anyplace in specific to look first? I really need this option.
Again, thanks for an otherwise great program.
Error checking is done in the upper part of the program (process.php). An error flag is set if something at respective places. You would be looking for this error flag ($error=1) and removing it from the places you don't want to be required.
Also, program modifications are provided as a service. Check out the project homepage for details: http://phpformgen.sourceforge.net
Hello. I tried getting rid of the flag ($error=1) from the file upload part of the script but it then shows:
Warning: Unable to open '' for reading: No such file or directory in /usr/webspace/iofm.net/f/l/flowerpot/stuff/ttchallenge/forms/process.php on line 82
and lists each line where the error flag was. I can't be doing this right. Can you help? Other than that, cheers on an ace script!
Hello. I tried getting rid of the flag ($error=1) from the file upload part of the script but it then shows:
Warning: Unable to open '' for reading: No such file or directory in /usr/webspace/iofm.net/f/l/flowerpot/stuff/ttchallenge/forms/process.php on line 82
and lists each line where the error flag was. I can't be doing this right. Can you help? Other than that, cheers on an ace script!