ASP files with Email form?

J

Jeffrey Kirk

We do website development and hosting in the FrontPage
environment. We've noticed that with HTML files we can
have a form use the FrontPage email results with no
problem. However, if we rename a file so that it has
a .ASP extension then the email results will no longer
work. Why is that? And, is there a workaround? We've
used external email components in some cases, but some
sites are so simple that it doesn't make sense to use an
external component. Thanks.
 
M

Mike Mueller

Jeffrey,
I can not tell you why it doesn't work, but I will tell you
that I would use external asp scripts for all email forms.
The reason is that the FP form handler will have the email
address in the html code, a good target for email
harvesters.

Mike

: We do website development and hosting in the FrontPage
: environment. We've noticed that with HTML files we can
: have a form use the FrontPage email results with no
: problem. However, if we rename a file so that it has
: a .ASP extension then the email results will no longer
: work. Why is that? And, is there a workaround? We've
: used external email components in some cases, but some
: sites are so simple that it doesn't make sense to use an
: external component. Thanks.
 
C

chris leeds

there is a work-around!
make your form on an .html/ .htm page and configure it as usual. not a
'templated page' but just a plain old page, switch to "code view" and delete
from the <body> tag up and from the </body> tag down (including the tag
itself).
then, in the asp page include the form with an .asp include!

it even works with php. ;-)

--
Chris Leeds,
Microsoft MVP FrontPage

The email address on this posting is a "black hole". I got tired of all the
spam.
Please feel free to contact me here:
http://nedp.net/contact/
 
J

Jim Buyens

There's a filter named shtml.dll that runs on the Web
server and watches for browse-time FrontPage components
like Save Results.

There's a second filter called asp.dll that runs on the
Web server and runs ASP code.

These two are incompatible, as in one not being able to
feed the other, and that's one reason why you can't
combine browse-time FrontPage components with ASP.

Another is a security hole that surfaced four or five
years ago, whereby bad guys could trick shtml.dll into
delivering clear copies of ASP pages (pages with the ASP
program intact). Microsoft fixed that by making it
impossible to mix the two technologies.

The usual workaround is to write ASP code that saves your
form results, as well as doing whatever else you want to
do. For an introduction to this technique, browse:

Mailing Form Data
http://www.interlacken.com/winnt/tips/tipshow.aspx?tip=46

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top