# Contact scripting

**URL:** <https://forum.kirupa.com/t/contact-scripting/116706>\
**Category:** Uncategorized\
**Created:** [July 20, 2004, 7:51pm UTC](https://forum.kirupa.com/t/contact-scripting/116706 "2004-07-20T19:51:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kashif](https://avatars.discourse-cdn.com/v4/letter/k/ecc23a/32.png) [@kashif](https://forum.kirupa.com/u/kashif)\
**Post date:** [July 20, 2004, 7:51pm UTC](https://forum.kirupa.com/t/contact-scripting/116706/1 "2004-07-20T19:51:01Z")

</div>

hi can anyone help me

i got this email form from flashkit and it works fine - i just need to add an extra field called phone number. Unfortunately the PHP file is not picking the “phone” variable up?

can anyone help me pleeeeeeeeeeeeease

k

---

<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:** [July 21, 2004, 9:53am UTC](https://forum.kirupa.com/t/contact-scripting/116706/2 "2004-07-21T09:53:25Z")

</div>

fscommand(“allowscale”, “false”);  
//  
// set some variables  
//  
mailform = “mailform.php”;  
confirm = “Thank you a confirmation email has been sent to your email address.”;  
action = “send”;  
error1 = “valid email required”;  
error2 = “input required”;  
//  
// and focus on variable fname  
//  
Selection.setFocus(“name”);  
//  
// validate email function  
//  
function validate(address) {  
if (address.length\>=7) {  
if (address.indexOf("@")\>0) {  
if ((address.indexOf("@")+2)\<address.lastIndexOf(".")) {  
if (address.lastIndexOf(".")\<(address.length-2)) {  
return (true);  
}  
}  
}  
}  
return (false);  
}  
//  
// form check  
//  
function formcheck() {  
if ((((email == null)) || (email.length\<1)) || (email == “valid email required”)) {  
email = error1;  
action = “”;  
}  
if (!validate(email)) {  
email = error1;  
action = “”;  
}  
if ((name == null) || (name == “”)) {  
name = error2;  
action = “”;  
}  
if ((comments == null) || (comments == “”)) {  
comments = error2;  
action = “”;

```
}
if ((validate(email)) && (email != error1) && (name != "") && (name != error2) && (comments != "") && (comments != error2)) {
	action = "send";
	loadVariablesNum(mailform, 0, "POST");
	gotoAndPlay("wait");
}

```

}  
stop();

THe problem is the phone input box is not storing the number, where does it go here and how?

would apreciate it a lot if anyone can help
