Hi,
with some very kind help from this forum I managed to get my little, primitive homework page working. PHP sends me an email with the students’ answers. Works great!
Now, I would like to try and get the form to accept a file as well, which would be an essay written in Word or Open Office. Not a very big file.
Reading a bit on the subject, I’m wondering if I should attach the file to an email or save it on the host.
Which is best?
Will I be able to simply modify my thankyou.php script to handle a file upload, or is that a much more difficult proposition?
I still need the thankyou.php to send me the details of each student, so maybe I can squeeze the file in too?
What I would like to know most of all is how I should go about this.
Then I can file away at some PHP.
I see html has:
`<input type="file" name="fileupload" value="fileupload" id="fileupload">`
Could I just declare another PHP variable? I don't imagine it is that simple!
$fileupload = $_POST['fileupload'];
Thanks in advance for any links, tips or pointers!