WEBBOT and ASP

W

William

I have a simple form that emails the form field contents.
It works fine as a .htm file. But when saved as a .asp,
it doesn't work. I have a need to have it with a .asp
file extension. Is this possible? The code is below:

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<title>New Page 1</title>
</head>

<body>

<form method="POST" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" S-Email-
Format="TEXT/PRE" S-Email-Address="(e-mail address removed)" B-
Email-Label-Fields="TRUE" S-Builtin-Fields startspan --
<input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--
webbot bot="SaveResults" i-checksum="43374" endspan -->
<p><input type="submit" value="Submit"
name="B1"><input type="reset" value="Reset"
name="B2"><input type="text" name="T1" size="20"></p>
</form>

</body>

</html>
 
J

Jim Buyens

Sorry, you can't use the FrontPage Save Results component
to send mail from an ASP page. Save Results and ASP are
incompatible.

You'll need to abandon the Save Results component, and
write ASP code that (1) sends your mail and (2) does
whatever else you want.

Most hosts have an ActiveX object specifically designed
for sending mail from ASP pages. Check the host's support
pages for more information.

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

Kevin Spencer

You'll need to abandon the Save Results component, and
write ASP code that (1) sends your mail and (2) does
whatever else you want.

Either that or forget about having to save the file with a .asp extension.
After all, there is no ASP code in it. I can't understand why he thinks he
need sto save it with a .asp extension if it has no ASP code in it.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.
 
J

Jim Buyens

Kevin Spencer said:
Either that or forget about having to save the file with a .asp extension.
After all, there is no ASP code in it. I can't understand why he thinks he
need sto save it with a .asp extension if it has no ASP code in it.

Usually it's some combination of datbase processing and mailing. Like,
update a databae *and* send some mail about it. Or pre-fill some form
fields.

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

Guest

The reason is that Microsoft publishes a recommendation
in their knowledge base about protecting pages using asp
(see 825498). And then after hours of trying you find out
that one ms web development product is not compatible with
their asp...
-----Original Message-----


Either that or forget about having to save the file with a .asp extension.
After all, there is no ASP code in it. I can't understand why he thinks he
need sto save it with a .asp extension if it has no ASP
code in it.

Usually it's some combination of datbase processing and mailing. Like,
update a databae *and* send some mail about it. Or pre- fill some form
fields.

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

Kevin Spencer

The reason is that Microsoft publishes a recommendation
in their knowledge base about protecting pages using asp
(see 825498). And then after hours of trying you find out
that one ms web development product is not compatible with
their asp...

Well, again, I didn't see any ASP code in the page code you posted, and that
KB article would have nothing to do with a page that doesn't have the
necessary ASP code to provide the security. If that the page does indeed
have server-side code, I could understand the issue.

As for "one ms development product is not compatible with their asp" you
don't understand how these things work. Both ASP and FrontPage components
use ISAPIs (internet Server Application Programming Interfaces) to function.
Only one ISAPI can be used by any individual web page, and the determination
of which ISAPI to use is made by the file extension of the page. When using
ASP, it is not necessary to use FrontPage components, because ASP can do
anything (and more) that FrontPage components can do. In other words, it is
not the fault of Microsoft that these are incompatible; it is simply the way
web servers work.

Finally, the KB article in question is not a recommendation; it is a how-to.
There are many ways to secure pages in a web site. The article describes one
of them.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.
 

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

Similar Threads

Duplicate Records 3
Why no email? 1
File Upload in ASP? 2
Can't get Form Submission to Work 13
FP2003 Guestbook Problem 1
FP2003 Guestbook 2
Guestbook operation 2
Guestbook and Included Pages 6

Top