# Please help form question?

**URL:** <https://forum.kirupa.com/t/please-help-form-question/50936>\
**Category:** Uncategorized\
**Created:** [May 7, 2004, 8:54pm UTC](https://forum.kirupa.com/t/please-help-form-question/50936 "2004-05-07T20:54:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![voodoo](https://avatars.discourse-cdn.com/v4/letter/v/e68b1a/32.png) [@voodoo](https://forum.kirupa.com/u/voodoo)\
**Post date:** [May 7, 2004, 8:54pm UTC](https://forum.kirupa.com/t/please-help-form-question/50936/1 "2004-05-07T20:54:09Z")

</div>

hi guys i try to make a form  
used this as on a button to load the php

```auto

on (release) {
    	if (!Email.length || Email.indexOf("@") == -1 || Email.indexOf(".") == -1) {
		EmailStatus = "Please enter a valid E-mail address";
	} 
	
		else if (!FirstName.length) {
		EmailStatus = "Please Enter your name before Sending";
	} 

	else if (!ToComments.length) {
		EmailStatus = "Please enter some text in you message";
	} 
	
	else {
		loadVariablesNum ("snowMailPHP.php", "0", "Post");
        EmailStatus = "Sending wait please";
			
}
}

```

tell now every thing is fine here is the php code

```auto

<?
$ToEmail = "zakyshan2002@yahoo.com";

##$ToName = "sameh";
$ToSubject = "test form";

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

Message Sent:
$ToComments

Sender Heard About Site From: $HearAbout
";

$EmailFooter="
This message was sent by: $FirstName from $REMOTE_ADDR If you feel that you recieved this e-mail by accident please contact us at www.somesite.com";

$Message = $EmailBody.$EmailFooter;

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

Print "_root.Mail.EmailStatus=Complete - Your mail has been sent";

?>

```

put the email did not send here is a link for the form and my server support php3 and 4  
[http://voodo.t35.com/myform.htm](http://voodo.t35.com/myform.htm)  
what is wrong the form texts submit button all is inside a movie clip with instance name of mail
