ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

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 Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old March 25th, 2003, 11:29 PM
HotRodDrew HotRodDrew is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 4 HotRodDrew User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ASP/Frontpage Problem

Im trying to make the data from a form go into a db, and also have part of the information sent via ASPMail to a form field. I set up the original form page with Frontpage's database wizard, then set my own confirmation page with the ASP code for the ASp mail. The problem Im having is that the confirmation page doesnt like request.form("profemail"). Ive checked the spelling 100 times so I know thats not it. If anyone could help, that would be great. Here is the confirmation page code below for those who are reading. Thanks in advance

<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.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>

<p align="center">
<%
Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.FromName = "Request Info"
Mailer.FromAddress= "automailer@server.server.com"
Mailer.RemoteHost = "server.server.com"
Mailer.AddRecipient = "Professor", Request.form("profemail")
Mailer.Subject = "Woohoo"
Mailer.ContentType = "text/html"
Mailer.BodyText = "Your widgets order has been processed!"
if Mailer.SendMail then
Response.Write "<p align=""center"">Thank you for your request.&nbsp; </p>" &_
" <p align=""center"">As soon as your professor approves your request you will hear " & _
"from an employee .</p>"
else
Response.Write "Mail send failure. Error was " & Mailer.Response
end if
%>
</p>
</body>

</html>

Reply With Quote
  #2  
Old March 29th, 2003, 11:13 AM
INF INF is offline
Standards User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 146 INF User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 4 sec
Reputation Power: 6
How is the form setup, or more inportantly when is the insert performed?

I'll assume your form gets inserted on the 1st page, after which by the time your at the second page there's no form data to request as it's already been inserted to the db. Make sense?

You could set a cookie to hold "profemail", then request the cookie in the ASP Mail code instead.

Reply With Quote
  #3  
Old March 30th, 2003, 11:37 PM
MatrixCode MatrixCode is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 5 MatrixCode User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
correct me if i'm wrong but shouldn't this:

Quote:
"Professor", Request.form("profemail")


be concatenated together? like this:

Quote:
"Professor," & Request.form("profemail")


or something to that effect...I don't know just a guess...

Reply With Quote
  #4  
Old March 31st, 2003, 11:39 AM
HotRodDrew HotRodDrew is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 4 HotRodDrew User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for the replies. I was assuming also that the form had already been processed making request.form impossible to use. Anyway, Im going to scrap the frontpage db stuff and make my own asp page so I know what exactly is going on. Thanks for the help though.

Drew

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > ASP/Frontpage Problem


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 6 hosted by Hostway