Hi
I was wondering if anyone could help. I had a script that was working but after making a few changes it does not do what it originally did. I have figured out why but not so sure on how to correct this.
I had a script that in the html document - it had a max_file_size in a hidden field.
Then in the corresponding php document I had some if statements: if jpeg -- blah blah, elseif gif ... else die (Photo was not of the correct format or too large). This worked fine.
Then I figured that when someone didn't enter a picture I still wanted to save their data to I included another "elseif" which was elseif photo is empty - say thanks blah blah. insert into db ....
Unfortunately - now when someone tries to insert a photo that is too large - the max_file_size stops it being passed across and then the Photo field is always empty. This means that I am getting a lot of data in my data base without photos instead of the user getting an error message asking them to reduce the size of thier photo.
Any ideas how to get around this?
Thanks a lot.
Jon