%
option explicit
Response.Buffer = true
if session("company_id") <> "" then
dim sPaypal_Email
dim sPaypalStatus
dim return_page
dim objfs
dim objfile
%>
<%
sPaypal_Email = Request.Form("paypal_email_address")
sPaypalStatus = Request.Form("paypal_payment")
'update data
set objfs = server.CreateObject("scripting.FileSystemObject")
if objfs.FileExists(server.MapPath("../../../../../member/" & Request.Cookies("storename") & "/paypalCode.txt")) = true then
objfs.DeleteFile server.MapPath("../../../../../member/" & Request.Cookies("storename") & "/paypalCode.txt"),0
end if
set objfile = objfs.OpenTextFile(server.MapPath("../../../../../member/" & Request.Cookies("storename") & "/paypalCode.txt"),8,-1,0)
objfile.WriteLine sPaypal_Email
objfile.close
set objfile = nothing
if objfs.FileExists(server.MapPath("../../../../../member/" & Request.Cookies("storename") & "/paypalStatus.txt")) = true then
objfs.DeleteFile server.MapPath("../../../../../member/" & Request.Cookies("storename") & "/paypalStatus.txt"),0
end if
set objfile = objfs.OpenTextFile(server.MapPath("../../../../../member/" & Request.Cookies("storename") & "/paypalStatus.txt"),8,-1,0)
objfile.WriteLine sPaypalStatus
objfile.close
set objfile = nothing
return_page = ""
Response.Write return_page
else
Response.Redirect "../../index.asp"
end if
%>