<%@ language="JScript" %> <% /*--------------------------------------------------------------------------*\ mailform.js - Send form contents in an email, using settings specified in "settings.txt" file Copyright (C) 2005, Techio Systems. All rights reserved. www.techio.net info@techio.net License: You may use this code for free in your own projects on the condition that you keep this copyright/license comment block intact, and do not claim to have written this code yourself. History ------- 1.00 PJH 02-Jan-05 Initial coding \*--------------------------------------------------------------------------*/ // // literal strings for translation // var sErrMessageAlreadySent = "The message has already been sent." // // global variables // var bError = false var nError = 0 var sErrMsg = "" var oSettings = GetSettings() // // post-back handler code // if (Request.Form ("postback") == 1) { if (!Session ("bMessageSent")) { // // now build message content by enumerating required form fields in an HTML table // var sContent = "" var aFields = oSettings.fields.split (',') var aFieldNames = oSettings.fieldnames.split (',') for (var i = 0; i < aFields.length; i++) { var sField = aFields [i].Trim() var sFieldName = aFieldNames [i].Trim() if (!sFieldName) sFieldName = sField sContent += "\n" } sContent += "
" + sFieldName + ": " + Request.Form (sField) + "
\n" // finally, send the message var sFrom = GetSettingOrFormValue (oSettings, "from") var sFromName = GetSettingOrFormValue (oSettings, "fromname") var sTo = GetSettingOrFormValue (oSettings, "to") var sToName = GetSettingOrFormValue (oSettings, "toname") var sCc = GetSettingOrFormValue (oSettings, "cc") var sSubject = GetSettingOrFormValue (oSettings, "subject") // if "from name" given, stick it in from address if (sFromName) sFrom = '"' + sFromName + '" <' + sFrom + '>' // if "to name" given, stick it in to address if (sToName) sTo = '"' + sToName + '" <' + sTo + '>' SendMail (sFrom, sTo, sCc, sSubject, sContent, oSettings.smtpserver, oSettings.smtpport) Session ("bMessageSent") = 1 } else { // user clicked send button twice - complain bError = true sErrMsg = sErrMessageAlreadySent } // now push to "thanks" page Response.Redirect (oSettings.thanks + (bError ? "?error=" + (nError + "," + sErrMsg) : "")) } else // not post-back { // first time through; clear message sent flag Session ("bMessageSent") = 0 } %> Bob Pritchard - "Mr. Marketing"
 
 

Order Online
 

Please note all prices apply in $USD, $AUD and Euros

Product Price Number
 
Books
Complex Marketing Made Simple $30.00
Marketing Success Stories $30.00
Sponsorship Made Simple $30.00
Business & Personal Audit (293 probing questions) $70.00
     
Audio Tapes
Bob Pritchard Live $45.00
Making Yellow Pges Work for You $45.00
Marketing in the eCommerce Economy $45.00

Win with Fantastic Customer Service

$45.00
Why Shouldn't I buy from your competitor? $45.00
Added Value $45.00
Face To Face $45.00
15 Keys to Business Successes (4 Tapes) $95.00
15 Keys + Yellow Pages + Live (6 tapes) $150.00
10 Tape Super Set (Save $101.50) $290.00
     
Special Packages
Complex Marketing Book + "Live" Video $70.00
4 Tape Series + Complex Marketing Book $115.00
4 Tape Series + Complex Book + Video $160.00
6 Tape Series + Complex Marketing Book $205.00
     

Special Conference Bonus

6 Tape Audio Series (15 Keys/Live/Yellow Pages) PLUS FREE Complex Marketing Made Simple $150.00
     
CD Supersets    
Kick Ass Marketing (8CDs, 9.5 hours) $250.00
15 Keys to Guaranteed Business Success (4CDs, 4.5 hours) $200.00
16  Critical Business Tools (6CDs, 6 hours) $225.00
      
PLUS Postage and Handling determined by order
Total
Name*:
Address*:
Country*:
Email*:
Phone*: (incl. int'l code)
Fax: (incl. int'l code)
Please charge my Credit Card*:
Card Number*: - - -
Expiry Date*:
100% Money Back Guarantee