Problem with dynamic text field when updating its text

[LEFT]hi friends,i am new to Flash and i have a problem with dynamic text fields using flash mx… My movie contain single layer and 2 frames. First frame contains a form with static text fields, input text fields and push buttons and 2nd frame contanis single dynamic text field. When user entered the details and click submit button it moves to 2nd frame and displays some dynamic text. Everything is good except text in 2nd frame is not displaying some times.[/LEFT]

I am attaching my code,


1st Frame :
 
//txt_message is instance name not variable name
 
 
function onSubmit()
{
    alert_txt.text='';
    userData = new LoadVars();
    userData.fname = txt_fname.text;
    userData.middle = txt_middle.text;
    userData.lname= txt_lname.text;
    userData.email= txt_email.text;
    dataReceiver = new LoadVars();
    dataReceiver.onLoad = function(){
       var txt = this.response;    
       if (txt == "success") {
        // use result values 
                txt_message.text =" Thank you for your interest in our site !";
        }
       else
        {
        // display error
        txt_message.text = dataReceiver.error;
        }
        }
    userData.sendAndLoad("register.php",dataReceiver,"POST");
 
    play();
    }
}
 
2nd Frame :
 
stop();
php will send either  echo 'response=success';  or  echo 'response=failed&error=Some Error';

it may be simple/silly thing but i am unable to find what went wrong

thanks for your help

bye
userm