Contact form PHP confirmation

Hello, I’ve done a search and I can’t seem to find the answer.

This AS code works 100%, but the problem is that the PHP server doesn’t send the email instantly as soon as the submit button is pressed in Flash. So I want the PHP server to tell Flash that the email was sent then it could move to frame 2.

on (release) {
	if (nametxt.text != "" && emailtxt.text != "" && messagetxt.text != "") {
		_root.form.loadVariablesNum("email.php", "POST");
		gotoAndStop(2);
	} else {
		stop();
		error._visible = true
	}
}

So FLASH sends email.php to PHP, then I want a reply to FLASH from PHP that email was sent. Is it possible, and does it make sense?
Thank you