# Flash communicaton to php?!

**URL:** <https://forum.kirupa.com/t/flash-communicaton-to-php/73233>\
**Category:** flash\
**Created:** [December 14, 2004, 12:57pm UTC](https://forum.kirupa.com/t/flash-communicaton-to-php/73233 "2004-12-14T12:57:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![3pinter](https://avatars.discourse-cdn.com/v4/letter/3/9de053/32.png) [@3pinter](https://forum.kirupa.com/u/3pinter)\
**Post date:** [December 14, 2004, 12:57pm UTC](https://forum.kirupa.com/t/flash-communicaton-to-php/73233/1 "2004-12-14T12:57:13Z")

</div>

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 = “[joris@fromthemill.nl](mailto:joris@fromthemill.nl)”;  
// 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
