# URGENT help in Contact Form with PHP Plzz

**URL:** <https://forum.kirupa.com/t/urgent-help-in-contact-form-with-php-plzz/242023>\
**Category:** flash\
**Created:** [October 21, 2007, 7:37am UTC](https://forum.kirupa.com/t/urgent-help-in-contact-form-with-php-plzz/242023 "2007-10-21T07:37:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![designursite](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/designursite/32/2209_2.png) [@designursite](https://forum.kirupa.com/u/designursite)\
**Post date:** [October 21, 2007, 7:37am UTC](https://forum.kirupa.com/t/urgent-help-in-contact-form-with-php-plzz/242023/1 "2007-10-21T07:37:56Z")

</div>

Hi i’ve pasted it below, plz help me …i cant let my website run without this form:

**THIS CODE IS ON THE FIRST FRAME**

```auto

stop();
send_mc._visible = false;

send_btn.onRelease = function() {
	my_vars = new LoadVars();
	my_vars.sender = name_box.text;
	my_vars.email = email_box.text;
	my_vars.subject = subject_box.text;
	my_vars.user = user_box.text;
	my_vars.message = message_box.text;
	if (my_vars.sender != "" and my_vars.email != "" and my_vars.subject != "" and my_vars.user != "" and my_vars.message != "") {
		my_vars.sendAndLoad("mailer.php", my_vars, "POST");
		send_mc._visible = true;
	} else {
		error_clip.gotoAndPlay(2);
	}
	my_vars.onLoad = function() {
		gotoAndStop("sucess");
	};
};
email_box.onSetFocus = subject_box.onSetFocus = message_box.onSetFocus = name_box.onSetFocus = user_box.onSetFocus = function () {
	if (error_clip._currentframe != 1) {
		error_clip.gotoAndPlay(6);
	}
};

```

**THIS IS THE PHP CODE THAT IS "mailer.php"**

```php

<?php

$subject = $_REQUEST["subject"];
$message = $_REQUEST["message"];
$sender = $_REQUEST["sender"];
$email = $_REQUEST["email"];
$user = $_REQUEST["user"];

$full_message = $_SERVER['REMOTE_ADDR'] . "

" . $message;
$message= $full_message;

$subject = "Contact Form ";

if(isset($message) && isset($subject) && isset($sender)){
	mail("designursiter@yahoo.com", $subject, $message, "From: $sender");
}?>

```

**what i needs is when i press send it must send all the 4 details it comes blank in my email…**

thx…a million in advance
