Flash communicaton to php?!

Well, maybe not the right place to place this topic. Sorry for that.

I’m having troubles understanding php and flash. The communication between the two.

I’ve made a simple mail form, using flash. PHP takes care of the sending. Works just fine. BUT the php also has a ‘valid email checker’.
Here starts my problem… My opinion is that flash doesn’t receive (or looks) at the php-file.

This is what I use for sending a mail.

verstuur.onPress = function() {
loadVariablesNum(“mailform.php”, 0, “POST”);
};

This is the php file.

<?
// Zet de URL vanwaar men vandaan komt:
$http_referrer = getenv( “HTTP_REFERER” );
// Functie om te verifieren of er een syntaktisch correct email adres ingevuld is:
function ValidEmail($email = “”) {
if (ereg("[[:alnum:]]+@[[:alnum:]]+.[[:alnum:]]+", $email)) {
return true;
} else {
return false;
}
}
$mailto = “[email protected]”;
// Zet de mail subject:
$subject = “Mail van mijn website.”;
// Bericht voor de ontvanger:
$messageproper =
"Reactie vanaf:
" .
$_SERVER[‘HTTP_REFERER’] . "
" .
"------------------------- MELDING VAN MIJN WEBSITE------------------

" .
"Naam: " . $_POST[‘naam’] . "
" .
"Email: " . $_POST[‘email’] . "
" .
"Bericht: " . $_POST[‘bericht’] . "
" .
"


" ;
// email het eerste bericht aan de ontvanger:
mail($mailto, $subject, $messageproper, “From: '” . $naam . “’ <” . $email . “>
Reply-To: '” . $naam . “’ <” . $email . “>
X-Mailer: chfeedback.php 2.0” );
?>

==========================

Does anybody have a clue have to make flash communicate with php.

Tnx already