Mailto
Hi,
I use IE4 and the company I work for wants me to make an online form where employees can ask for one or more day(s) off.
I use:
<form method="post" action="mailto:[email protected]">
(f o r m c o n t e n t s)
<input type="submit">
</form>
When I click the Submit, IE4 starts MS Outlook. That's not what I want to happen!
Who helps me?
Jack.
[This message has been edited by Jack Michaelson (edited 19 January 2000).]
Shakespeare: onclick || !(onclick)
Jack Michaelson posted this at 12:23 — 19th January 2000.
He has: 1,733 posts
Joined: Dec 1999
I want the formcontents to be sent to [email protected]
Jack.
RC posted this at 13:23 — 19th January 2000.
They have: 89 posts
Joined: Sep 1999
You need to use a form processing action of some kind. This is usually done with perl cgi scripts, but can be done with ASP, Coldfusion, etc.
If your server can process ASP, then you don't need to do anything more except make the page.
Jack Michaelson posted this at 14:41 — 19th January 2000.
He has: 1,733 posts
Joined: Dec 1999
RC,
Sorry for not being specific enough:
I am using ASP.
What I'm trying to say is:
I can't figure out what formaction to use.
Who does??
Jack.
[This message has been edited by Jack Michaelson (edited 19 January 2000).]
Shakespeare: onclick || !(onclick)
RC posted this at 14:55 — 19th January 2000.
They have: 89 posts
Joined: Sep 1999
<Form action="sendmail.asp">
Your action must be an asp page if you want to use asp to mail the form. This asp page would have necessary code and the form would be sent. Check out the Misc. Scripting Languages Forum discussion about CDO started by Eugene for specifics on the code and getting it to work.
The only difference would be that your message body would include in it the form contents like so:
Dim txtBody
txtBody = "Date I want off:" & Request.Form("txtDate")
The "txtDate" would of course just be the name of your field from the form.
If this is confusing or not helpful just let me know and I will try again
Jack Michaelson posted this at 09:16 — 20th January 2000.
He has: 1,733 posts
Joined: Dec 1999
Thanks RC,
I had to install CDO first, but everything works great. Still have to do some server configs (working with two servers) but I'm sure (read: I hope; it is Microsoft afterall ) it will work correctly within an hour or so. You're the best and Eugene deserves two thums up also!
Jack.
Shakespeare: onclick || !(onclick)
RC posted this at 13:00 — 20th January 2000.
They have: 89 posts
Joined: Sep 1999
good luck
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.