I have used php to generate a response to a request to send information via a contact form in flash mx.
If the mail is sent a response from the server in the form of:
Server response:Mail Sent
is loaded into the text field
What I want to do is load one page if this text is present in the text field and load another if some other text is present.
Could I use for example:
if(Errors_Status.text==Server response:Mail Sent){
do this…
}
else
{do this
}
I have created a function that runs if the loading of the php variable is successful.
onLoad function (success)
if(success){
do this…
but this only tests if the variable was received and the result could also be Server response:Mail not sent
I think maybe the first solution could work.
Any ideas out there??