Question:
I'm creating a form in FP2K. It emails me the results.
If I want the user to be able to attach his resume
somewhere in this form, what could I do.
I've looked into SAFileUp as recommended earlier in a
similiar thread posted earlier.
My dilema is that I want there to be a field inside the
form with a browse button next to it. The user should be
able to use this browse button, point to the location of
the resume and then, when finished with the form, click
submit and have the form emailed to me with the user's
resume as an attachment.
Any way of doing this as indicated above? Any further
recommedations at all would be appreciated.
Answer:
This can't be done with FP and sent as an email
attachment. You can however create a directory in your web
on the server and then insert a file upload. At least in
FP 2002 you can. Here are the instructions:
Add a file upload control to a form
In Page view, do one or both of the following:
Add a file upload control to a form and set its web folder
properties
Click in the form where you want to place the file upload
control.
If you are inserting a form field but have not already
created a form, Microsoft FrontPage will automatically
create a form area and insert the field inside that form.
The form area will appear as a dashed line when you are
editing the page.
You can insert a new line by pressing ENTER.
On the Insert menu, point to Form, and then click File
Upload.
Create a new folder in your web site.
This is the location to which your site visitors will
upload their files. If you do not create this new folder,
your file upload control will not work.
How?
In the Folder list, right-click the web site, point to
New, and then click Folder.
To rename the folder, click the folder, right-click it,
click Rename, and then type the new name.
Right-click the new folder, and then click Properties on
the shortcut menu.
Cancel the selection of the Allow scripts to be run
option.
If you do not cancel the selection of this option, the
following two options will be unavailable (dimmed).
Select Allow anonymous upload to this directory.
Select Allow uploaded files to overwrite existing file
names if you want existing files to be overwritten.
Click OK.
Right-click the form, and click Form Properties on the
shortcut menu.
Click Options.
Click the File Upload tab.
Under Destination, browse to or type the name of the
folder where you want the uploaded files to go, and click
OK.
Set the properties of a file upload field
Double-click the file upload text box.
In the Name box, type a name to identify the file upload
text box.
This internal name, which is not shown on the form,
identifies the check box in the form results. It will be
visible to the site visitor on the default confirmation
page, which is displayed when you use a form handler
rather than a custom script.
If you want text to appear in the text box when a site
visitor first opens the form, type the text in the Initial
value box.
In the Width in characters box, type a number indicating
how many characters wide you want the box to be.
Click the Style button to access other options for
formatting your form using cascading style sheets as an
inline style.
Notes
This control is supported in Microsoft Internet Explorer
4.0 or later and Netscape 2.0 or later. The browser
compatibility options should be changed to reflect this.
To test the functionality of your form, you must first
publish your web site to a web server running either the
Microsoft FrontPage Server Extensions 2002 or SharePoint
Team Services from Microsoft. Ask your web server
administrator or Internet Service Provider whether this
software is installed on your web server. Once the web
site is published, click Preview in Browser to test the
form.