There seems to be an error in the flile upload.
The script works the first time when you upload a.jpg but when you try to use the form for the second time to upload b.jpg it says "The file, b.jpg, was not uploaded!"
I removed the error check for the fileupload and then it says "Warning: copy() [function.copy]: Unable to access in /home/httpd/html/www.mysite.com/HTML/phpform/forms/process.php on line 14
Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/html/www.mysite.com/HTML/phpform/forms/process.php:14) in /home/httpd/html/www.mysite.com/HTML/phpform/forms/process.php on line 25"
Any ideas on that?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
you can't just take out code, if its placed there then there must be a valid reason for it. So its advised that you don't touch the code but rather look and check the installation issues such as file permissions, etc. Have you tried creating the form on the demo site? See if it messes up there too, otherwise its probably a problem with your installation. Also, when you say that it worked once, but it doesn't work the second time, that doesn't seem logical. The code doesn't automagically change when someone fills out a form. I'm thinking that file upload his being handled by some specific user account in PHP, and that messes up some of the permissions.
The demo site is located at: http://phpformgen.sourceforge.net/phpform
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There seems to be an error in the flile upload.
The script works the first time when you upload a.jpg but when you try to use the form for the second time to upload b.jpg it says "The file, b.jpg, was not uploaded!"
I removed the error check for the fileupload and then it says "Warning: copy() [function.copy]: Unable to access in /home/httpd/html/www.mysite.com/HTML/phpform/forms/process.php on line 14
Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/html/www.mysite.com/HTML/phpform/forms/process.php:14) in /home/httpd/html/www.mysite.com/HTML/phpform/forms/process.php on line 25"
Any ideas on that?
you can't just take out code, if its placed there then there must be a valid reason for it. So its advised that you don't touch the code but rather look and check the installation issues such as file permissions, etc. Have you tried creating the form on the demo site? See if it messes up there too, otherwise its probably a problem with your installation. Also, when you say that it worked once, but it doesn't work the second time, that doesn't seem logical. The code doesn't automagically change when someone fills out a form. I'm thinking that file upload his being handled by some specific user account in PHP, and that messes up some of the permissions.
The demo site is located at: http://phpformgen.sourceforge.net/phpform