Attaching files to form action -
First off this site is a super valuable resource, bravo.
My question: Is it possible to attach a file to a form action? What I'm working on is an online form that let's users fill it out, when they click send I would like to start up their default mail browser with the current .html file as the attachment.
This is an Intranet app so I know all users have Outlook so that isn't an issue. So basically, they fill out the form, click send, Outlook starts up a new email with the form they were just in, as an attachment.
I know it's possible to send the form results but for printing reasons this is not acceptable because I need this form to be editable since it might go back and forth between users who update the form.
So if anyone has any ideas let me know.
Thanks!
PJ
John Pollock posted this at 20:22 — 12th May 1999.
He has: 628 posts
Joined: Mar 1999
You can get the e-mail client to open, but I'm not sure how to get an attachment to append to the email without the viewer doing anything.
You can script a button that will open the email client like this:
<INPUT TYPE="button" name="b1" value="go" onClick="window.location='mailto:[email protected]'">
This may require more if you are also sending the results somewhere. Also, someone may know how to get the attachments to work..
------------------
John Pollock
www.pageresource.com
www.javascriptcity.com
[This message has been edited by John Pollock (edited May 12, 1999).]
Java Script: A Beginner's Guide
Page Resource
Anonymous posted this at 21:10 — 12th May 1999.
They have: 5,633 posts
Joined: Jan 1970
Havent tried it but this might work:
<INPUT TYPE=file VALUE=locationOfFileIfItsAlwaysTheSame NAME=aName>
and then just a normal mailto-form
------------------
Malte Ubl
http://goKewl.com
Germany
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.