# PHP contact form from Flash - Used to work and now doesn't

**URL:** https://forum.kirupa.com/t/php-contact-form-from-flash-used-to-work-and-now-doesnt/99090
**Category:** Uncategorized
**Created:** [January 14, 2004, 4:35pm UTC](https://forum.kirupa.com/t/php-contact-form-from-flash-used-to-work-and-now-doesnt/99090 "2004-01-14T16:35:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sintax321](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@sintax321](https://forum.kirupa.com/u/sintax321)
#### Post date: [January 14, 2004, 4:35pm UTC](https://forum.kirupa.com/t/php-contact-form-from-flash-used-to-work-and-now-doesnt/99090/1 "2004-01-14T16:35:42Z")

</div>

I have a PHP contact form that used to work but now is giving me nothign but problems.

mail.php

```php
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$subject = $_POST['subject'];

$to="sintax321@hotmail.com";

$msg="$name

";
$msg.="$email

";
$msg.="$message

";

echo "<pre>"; print_r($_POST); echo "</pre>";

mail($to, $subject, $msg, "From: Contact
Reply-To: $email
X-main: PHP/");
?>

```

Flash send function from contact.swf  
[AS]on (release) {  
if (subject eq “” or message eq “” or email eq “” or name eq “”) {  
stop();  
} else {  
lineAdapt();  
loadVariablesNum(“mail.php”, 0, “POST”);  
sent.gotoAndPlay(2);  
subject="";  
message="";  
name="";  
email="";  
}  
}[/AS]

I put mail.php in both the root folder and the folder contact.swf so it should find it in one of the locations but it fails to work. Any one got any ideas?
