Hey Jeff,
I'm wondering if you can help me with this:
I changed this Cold Fusion e-card to asp and you can make your e-card and email to someone, after you get the email with the link you click on the link and it loads forever the e-card and it does not display the e-card for some reason. I'm wondering if you can tell me why
heres the asp code: "write"
<%
'////////////////////////////////////////////////////
'This template takes the query string from Flash and
'saves it to a text file on the server with a unique
'id. An email is sent with this unique id appended
'to the url. When the viewing goes to read the card
'it will load the unique text file with the personlized
'message, tree and snowman coordinates, and number
'of flakes on the screen.
'////////////////////////////////////////////////////
dim path
dim file
dim fs
dim ts
dim ip
dim rand
dim treex
dim treey
dim snowmanx
dim snowmany
dim toemail
dim fromemail
dim message
dim flakes
randomize
rand = int(rnd*1000000)+1
path = "\\brink-premfs1\sites\premium4\sandrol\database\flash-asp.mdb;"
file = path & rand & ".txt"
Response.write file
Set fs = Server.CreateObject("Scripting.FileSystemObject")
Set ts = fs.OpenTextFile(file, 2, True, 0)
'grab the variables from the URL
treex = Request.QueryString("treex")
treey = Request.QueryString("treey")
snowmanx = Request.QueryString("snowmanx")
toemail = Request.QueryString("toemail")
fromemail = Request.QueryString("fromemail")
num_flakes = Request.QueryString("num_flakes")
'write file
ts.WriteLine "&treex=" & treex & "&treey=" & treey & "&snomanx=" & snowmanx & "&snowmany=" & snowmany & "&to=" & toemail & "from=" & fromemail & "&message=" & message & "num_flakes=" & num_flakes & "loaded=1&"
ts.Close
'send mail
Dim mail
Set mail = Server.CreateObject("CDONTS.Newmail")
mail.From = fromemail
mail.To = toemail
mail.Subject = "E-Card"
mail.Body = "An e-card has been sent to you.
http://nodoubtdesign.com/read_card.asp?id=" & rand
mail.Send
%>
"reads"
<HTML>
<HEAD>
<TITLE>read_card</TITLE>
</HEAD>
<BODY bgcolor="#000000">
<!-- URL's used in the movie-->
<A HREF=e-card.html></A> <!-- text used in the movie-->
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
WIDTH=450 HEIGHT=375>
<PARAM NAME=movie VALUE="read_card.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#000000> <EMBED src="read_card.swf" quality=high bgcolor=#000000 WIDTH=450 HEIGHT=375 TYPE="application/x-shockwave-flash" PLUGINSPAGE="
http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>
</BODY>
</HTML>
I wish I could upload the the asp and fla files :-(
Thanks,
Sonic