Since the only server side object in the page are CDONTS related
- verify your host supports it (especially using server.MapPath for the attachment)
--
_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________
|
| ok....
|
| <style type="text/css">
|
| .progress{
| width: 1px;
| height: 14px;
| color: white;
| font-size: 12px;
| overflow: hidden;
| background-color: navy;
| padding-left: 5px;
| }
|
| </style>
| <script type="text/javascript">
|
| var ns6=document.getElementById&&!document.all
|
| function restrictinput(maxlength,e,placeholder){
| if (window.event&&event.srcElement.value.length>=maxlength)
| return false
| else if
| (e.target&&e.target==eval(placeholder)&&e.target.value.length>=maxlength){
| var pressedkey=/[a-zA-Z0-9\.\,\/]/ //detect alphanumeric keys
| if (pressedkey.test(String.fromCharCode(e.which)))
| e.stopPropagation()
| }
| }
|
| function countlimit(maxlength,e,placeholder){
| var theform=eval(placeholder)
| var lengthleft=maxlength-theform.value.length
| var placeholderobj=document.all? document.all[placeholder] :
| document.getElementById(placeholder)
| if (window.event||e.target&&e.target==eval(placeholder)){
| if (lengthleft<0)
| theform.value=theform.value.substring(0,maxlength)
| placeholderobj.innerHTML=lengthleft
| }
| }
|
|
| function displaylimit(thename, theid, thelimit){
| var theform=theid!=""? document.getElementById(theid) : thename
| var limit_text='<b><span id="'+theform.toString()+'">'+thelimit+'</span></b>
| characters remaining on your input limit'
| if (document.all||ns6)
| document.write(limit_text)
| if (document.all){
| eval(theform).onkeypress=function(){ return
| restrictinput(thelimit,event,theform)}
| eval(theform).onkeyup=function(){ countlimit(thelimit,event,theform)}
| }
| else if (ns6){
| document.body.addEventListener('keypress', function(event) {
| restrictinput(thelimit,event,theform) }, true);
| document.body.addEventListener('keyup', function(event) {
| countlimit(thelimit,event,theform) }, true);
| }
| }
|
| </script>
| <script type="text/javascript">
| function handleEnter (field, event) {
| var keyCode = event.keyCode ? event.keyCode : event.which ? event.which :
| event.charCode;
| if (keyCode == 13) {
| var i;
| for (i = 0; i < field.form.elements.length; i++)
| if (field == field.form.elements
)
| break;
| i = (i + 1) % field.form.elements.length;
| field.form.elements.focus();
| return false;
| }
| else
| return true;
| }
|
| function FP_changeProp() {//v1.0
| var args=arguments,d=document,i,j,id=args[0],o=FP_getObjectByID(id),s,ao,v,x;
| d.$cpe=new Array(); if(o) for(i=2; i<args.length; i+=2) { v=args[i+1];
| s="o";
| ao=args.split("."); for(j=0; j<ao.length; j++) { s+="."+ao[j];
| if(null==eval(s)) {
| s=null; break; } } x=new Object; x.o=o; x.n=new Array(); x.v=new Array();
| x.n[x.n.length]=s; eval("x.v[x.v.length]="+s); d.$cpe[d.$cpe.length]=x;
| if(s) eval(s+"=v"); }
| }
|
| function FP_getObjectByID(id,o) {//v1.0
| var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById)
| el=o.getElementById(id);
| else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
| if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
| for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
| f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
| for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return
| el; } }
| return null;
| }
|
| function FP_changePropRestore() {//v1.0
| var d=document,x; if(d.$cpe) { for(i=0; i<d.$cpe.length; i++) { x=d.$cpe;
| if(x.v=="") x.v=""; eval("x."+x.n+"=x.v"); } d.$cpe=null; }
| }
| </script>
| <style fprolloverstyle>A:hover {color: red; font-weight: bold}
| </style>
| <meta name="Microsoft Theme" content="none, default">
| <meta name="Microsoft Border" content="b">
| </head>
|
| <body link="#0000FF" vlink="#0000FF" alink="#0000FF"
| background="../../images/SY00342_1.gif" style="background-attachment: fixed">
|
| <h2 align="left"><b><font color="#800000" size="6">
| <img border="0" src="../../images/testim1.gif" width="96" height="94">Thank
| you
| for using the</font></b></h2>
| <h2 align="center"><b><font color="#800000" size="6">Website</font></b></h2>
| <p align="center"><a href="mysite.com/Receipt.asp" target="_blank"><b><font
| color="#800000"><span style="background-color: #FFFF00"><span
| style="text-transform: uppercase">Please
| click here to print your</span> INVOICE</span></font></b></a></p>
| <p align="center"> </p>
| <hr align="center">
| <%
| ToEmail = Request.Form("ShopperEmail")
|
| Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
| objCDOMail.To = ToEmail
| objCDOMail.BCC = "(e-mail address removed)"
| objCDOMail.From = "(e-mail address removed)"
| objCDOMail.AttachFile server.MapPath("Receipt.asp")
| objCDOMail.Subject = "Confirming your payment on the BGJ Website"
| For Each item in FP_SavedFields
| strBody = strBody & item & ": " & FP_SavedFields(item) & VbCrLf
| Next
| objCDOMail.Body = strBody
| objCDOMail.BodyFormat = 0
| objCDOMail.MailFormat = 0
| objCDOMail.Send
| Set objCDOMail = Nothing
| %>
|
| </body>
|
| </html>
|
| Thanks!
|
|
| "Thomas A. Rowe" wrote:
|
| > Unless you paste the code for your page here, no one can help you.
| >
| > --
| > ==============================================
| > Thomas A. Rowe (Microsoft MVP - FrontPage)
| > ==============================================
| > If you feel your current issue is a results of installing
| > a Service Pack or security update, please contact
| > Microsoft Product Support Services:
| > http://support.microsoft.com
| > If the problem can be shown to have been caused by a
| > security update, then there is usually no charge for the call.
| > ==============================================
| >
| > | > > Help. I get error '80004005' displayed on a page with a link to a database
| > > reults page. The results page displays correctly but it is a bit offputting
| > > for the user to see: error '80004005' http://www.mysite/mypage.asp Line 126
| > >
| > > Have looked at the line number but it makes no sense - there often seems no
| > > correlation between the line number and error messages.
| > >
| > > Anyway, I am pretty sure this is a new error message and that the page was
| > > acting without the error before.
| >
| >
| >