.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old February 17th, 2001, 12:02 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
Got an easy one for you

<i><b>Originally posted by : Iain Trotter (iaint@filmi.co.uk)</b></i><br />Quick and easy question.<br /><br />I have a form mail thing on my web page and am using cdonts with the script<br /><br />"<% @language="VBSCRIPT" %> <br /><br /><%<br /> Set objMail = Server.CreateObject("CDONTS.Newmail")<br /> objMail.To = request.form ("recipient")<br /> objMail.Subject = request.form ("name")<br /> objMail.From = request.form ("email")<br /> objMail.Body = request.form ("message")<br /> objMail.Send<br /> Set objMail = Nothing<br /><br /><br />Response.Redirect "thankyou.html" <br /><br />%> "<br /><br />It actually works fine but only if the peson enters their name their e-mail and their message (the recipient is fixed) I want it to be so that they can just enter one or two of the three things and it still works.<br /><br />Can anybody help?<br /><br />Thanks<br /><br />IainT<br />

Reply With Quote
  #2  
Old February 23rd, 2001, 11:19 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Danny Carvajal (dcarva@texas.net)</b></i><br />One thing that I do, is force them to enter all necessary information. I do this via Javascript. If they submit the form without entering the proper info, I popup a message telling them to enter their name, etc.<br /><br />If you want to send it anyways, you can do this.<br /><br />Dim strName<br />strName = Trim(request.form("name"))<br />if strName = "" then<br /> objMail.Subject = "not_specified"<br />else<br /> objMail.Subject = strName<br />end if<br /><br />Hope that helps,<br />Danny<br /><br />------------<br />Iain Trotter at 2/17/2001 10:02:36 AM<br /><br />Quick and easy question.<br /><br />I have a form mail thing on my web page and am using cdonts with the script<br /><br />"<% @language="VBSCRIPT" %> <br /><br /><%<br /> Set objMail = Server.CreateObject("CDONTS.Newmail")<br /> objMail.To = request.form ("recipient")<br /> objMail.Subject = request.form ("name")<br /> objMail.From = request.form ("email")<br /> objMail.Body = request.form ("message")<br /> objMail.Send<br /> Set objMail = Nothing<br /><br /><br />Response.Redirect "thankyou.html" <br /><br />%> "<br /><br />It actually works fine but only if the peson enters their name their e-mail and their message (the recipient is fixed) I want it to be so that they can just enter one or two of the three things and it still works.<br /><br />Can anybody help?<br /><br />Thanks<br /><br />IainT<br />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > Got an easy one for you


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway