# Mail form urg

**URL:** https://forum.kirupa.com/t/mail-form-urg/12077
**Category:** Uncategorized
**Created:** [January 26, 2003, 3:00pm UTC](https://forum.kirupa.com/t/mail-form-urg/12077 "2003-01-26T15:00:56Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![LATO](https://avatars.discourse-cdn.com/v4/letter/l/f17d59/32.png) [@LATO](https://forum.kirupa.com/u/LATO)
#### Post date: [January 26, 2003, 3:00pm UTC](https://forum.kirupa.com/t/mail-form-urg/12077/1 "2003-01-26T15:00:56Z")

</div>

why doesn’t my mailform work, that’s the question… I think it’s easier to look at the code than downloading the fla so:

My send button’s actions:

```php
on (release) {
    	if (!Email.length || Email.indexOf("@") == -1 || Email.indexOf(".") == -1) {
		mc.EmailStatus = "Please enter an emailaddress";
	} 	
	else {
		loadVariablesNum ("mailform.php", "0", "Post");
        mc.EmailStatus = "Sending...";
			
}
}

```

My mailform.php:

```php
<?
$ToEmail = "lato@webstation.be";

$ToName = "LATO";
$ToSubject = "Contact";

$EmailBody = "Sent By: $FirstName $LastName
Senders Email: $Email

Subject: $Subject
Message:
$ToComments
";

$EmailFooter="http://www.mysite.be";

$Message = $EmailBody.$EmailFooter;

mail($ToName." <".$ToEmail.">",$ToSubject, $Message, "From: ".$LastName." <".$Email.">");

Print "myAppMain.mc.EmailStatus=Your mail has been sent";

?>

```

The prob: it shows “Sending…” in “EmailStatus” when I click the Send-button, but it just doesn’t send anything.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [January 26, 2003, 8:48pm UTC](https://forum.kirupa.com/t/mail-form-urg/12077/2 "2003-01-26T20:48:16Z")

</div>

try ‘\_root’ instead of ‘myAppMain’:

Print “\_root.mc.EmailStatus=Your mail has been sent”; (in your .php file, of course)

anyway, the idea is that your problem consists of the print command that sends to flash a wrong path to your variable; read some tutorials about paths from kirupa
