Forum Moderators: open
does anyone know how i might be able to go about adding a file upload field to an email form i'm using in a FP 2000 web? I'm trying to design it so that visitors can type in their name, email etc and then browse their hard drive to attach a doc to the form. I know FP2002 has a web bot for this, but how can i go about adding it while using 2000?
Any help would be immensely appreciated!
thanks :-)
kelly
I checked that out and there does not appear to be a file upload option from the insert menu. I'm able to put together a form where a user could copy and paste text into a text field, but what I would like to have is a browse / add attachment field that will enable the user to search his or her computer, select the document and attach it to the form. Then, the document would come as an attachment appended to the rest of the info I had collected from the form.
If I use the code from FP 2002 that creates this webbot would it work in a web made using FP 2000 providing my host supports FP 2002 extensions? Or is there an easier way to accomplish this?
thanks again :)
the file upload form is the same code with or without FP
<form method="POST" enctype="multipart/form-data" action="--WEBBOT-SELF--">
<!--webbot bot="FileUpload" U-File="fpweb:///_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" --><p><input type="file" name="F1" size="20"><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
</form>
thats just a cut and paste from FP, "multipart/form-data" is used for a form involving files.
You could try using it by copying it on to your server, I am not entirely sure if your older version of FP will affect the functionality of the code.