CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Tell-A-Friend w/HTTP-Referer

Print topic Send  topic

Author Message
fcy
Posted: 07/10/2002, 5:53 PM


Help, this is one of those that "should work fine"

I've modified the TAF script from the example to include the URL of the requesting page in the e-mail that is sent. Instead of the referer...I get the name of the script. Any help in seeing the forest in this one would be appreciated. Thanks!!!


'-------------------------------
' TellAFriend Insert Event begin
Dim objCDO
Set objCDO = Server.CreateObject("CDONTS.NewMail")
objCDO.To = getparam("to_email")
objCDO.From = getparam("from_email")
objCDO.Subject = "Web Page from " & getparam("from_name")
objCDO.Body = _
"Hello " & getparam("to_name") & "!" & chr(13) & _
chr(13) & _
getparam("from_name") & " sent you this page from the EugeneCommerce Web Site." & chr(13) & _
Request.ServerVariables("HTTP_REFERER") & chr(13) & _
chr(13) & _
"Comments from " & getparam("from_name") & ":" & chr(13) & _
getparam("comments")

cn.execute("insert into tellafriend_log (ip, sending_date, from_email, from_name, to_email, to_name, message_comments) values (" & _
tosql (Request.ServerVariables("REMOTE_HOST"), "Text") & "," & _
tosql(Now(), "Text") & "," & _
tosql(getparam("from_email"),"Text") & "," & _
tosql(getparam("from_name"),"Text") & "," & _
tosql(getparam("to_email"),"Text") & "," & _
tosql(getparam("to_name"),"Text") & "," & _
tosql(getparam("comments"),"Text") & ")")

objCDO.MailFormat = 0
objCDO.Send
' TellAFriend Insert Event end
'-------------------------------
Alex Alexapolsky
Posted: 07/11/2002, 4:48 AM

This could be the case if there is no requesting page.
fcy
Posted: 07/11/2002, 7:26 AM

I'm linking to the script from another page. I put the the server variable in it's onw asp file and displayed the value and it worked fine. tried the same in code charge and no-go????

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.