Problems receiving variables...


hi,

i'm wondering if can of assistance, i'm trying upload flash site
that contains contact page 3 fields people can enter there details into:
name, email & message. we've written script page shows
a message user saying 'email sending in progess', there aware
something has happened!

everything seems fine, message appears when sending, details sent
/received both locally , on our test sever, when upload our site
the hosted unix environment, reason stop receiving messages
that have been written field. receive person's name , e-mail
address empty e-mail.

when being changed within our flash variables address...

does sound familiar anybody? have ideas how maybe
remedied? big pre-thanks might able help!!!

below flash code:

--------------//----------------

on(rollover){
this.gotoandplay("s1");
}
on(rollout, releaseoutside){
this.gotoandplay("s2");
}
on (press)
{
// send variables in form (the textfields)
// add end of message details of name
_parent.t4_2 = _parent.t4_2 + " " + _parent.t2_2
// email asp page send mail
_parent.loadvariables("cust-bin/mailtest.pl?action=send", "post");
_parent.t2_2 ="email";
_parent.t3_2 ="sending";
_parent.t4_2 = "in progress";
}
on (release) {


//pause few seconds
var i:number
var p:number
for (y=0; y<500000; y++)
{
p++;
}
_parent.t1_2="";
_parent.t2_2="your name:";
_parent.t3_2="your e-mail:";
_parent.t4_2="message:";
}

--------------//----------------

this works fine until change load-variables address our "sendmail2.asp"
below sendmail2.asp working fine.

--------------//----------------

<%
' put smtp mail server here. if not know, ask network administrator
smtpserver = "217.170.190.152"
smtpport = 25

' ---
dim smtpserver, smtpport


set message = createobject ("jmail.message")
'message.serveraddress = smtpserver & ":" & smtpport
message.from = request.form("t3_2")
message.fromname = request.form("t2_2")
message.subject = "web site enquiry"
message.addrecipient "richard@lanworks.co.uk", "richard"
message.contenttype = "text/html" ' or can put 'text/plain' plain text emessage
message.isoencodeheaders = false
message.contenttransferencoding = "8bit"
message.body = request.form("t4_2") & vbnewline & "from : " & request.form("t2_2")

' 1 - highest priority (urgent) ' 3 - normal ' 5 - lowest
message.priority = 3


' add sender's ip address (not required, useful web-based emessage)
'message.addheader "originating-ip", request.servervariables ("remote_addr")

'send e-mail
message.send(smtpserver & ":" & smtpport)
response.write "success=1&timedate=" & server.urlencode(message.date) & "&end=1"
set message = nothing
%>

--------------//----------------

hope can help!!
thanks you!

si

you have 2 errors, unless you're using older version of flash, in case have one.

you can resolve both not changing variables' values before received php script , removing for-loop inappropriate use timing device.

if must use same textfields give feedback user (that message being sent) assign 3 other variables contain values of textfield variables before textfield variables changed give feedback (and change php script accordingly).


More discussions in ActionScript 1 and 2


adobe

Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support