Posts: 235
Name: Vicky
Location: Brit in Bulgaria
|
Taking my first baby steps with PHP so please be gentle!
I have managed to get a form working which emails me data entered into an html form. I used php to take the info and email it to me. Everything works ok except for the file upload bit - I want users to be able to send a photo. When I get the email, I just get the file name of the photo, rather than the photo itself. I have put enctype="multipart/form-data" on the form and used the "file" type, but there must be something else I need to do?
I'm not bothered about validating for type of file, size or any of that (for now, anyway). Everything I google gives me tonnes of script full of validation code and I can't dig out the crucial part - how to get the darned photo!

|