# Need Help - PHP in Flash

**URL:** <https://forum.kirupa.com/t/need-help-php-in-flash/204779>\
**Category:** flash\
**Created:** [October 23, 2006, 1:23pm UTC](https://forum.kirupa.com/t/need-help-php-in-flash/204779 "2006-10-23T13:23:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FrizzyCube](https://avatars.discourse-cdn.com/v4/letter/f/fbc32d/32.png) [@FrizzyCube](https://forum.kirupa.com/u/FrizzyCube)\
**Post date:** [October 23, 2006, 1:23pm UTC](https://forum.kirupa.com/t/need-help-php-in-flash/204779/1 "2006-10-23T13:23:58Z")

</div>

Hey guys! Been stuck for weeks on making this PHP FLASH MAIL FORM and it’s driving me insane! I’m relatively new to this kind of stuff so bare with me. 😊

First off, I’ve been mainly using this tutorial + resource to build a PHP Flash Form: [http://www.actionscript.org/resources/articles/82/1/Send-Email-via-Flash-and-PHP/Page1.html](http://www.actionscript.org/resources/articles/82/1/Send-Email-via-Flash-and-PHP/Page1.html)

**The Problem:**  
When the form is simplified to a mere: E-mail (From), Subject, Message… it works perfectly. But as soon as I add other variables (in to the PHP and Flash) such as… Full Name, Website, Contact Number… it doesn’t work! I’m stumped!

**All I’m trying to create in this form is…**  
Full Name:  
Your E-mail:  
Your Website:  
Contact Number:  
Subject:  
Message:

**PHP Codes:**

```auto

<?php
mail("booking@frizzycube.com", $subject, $message, $fullname, $yourwebsite, $contactnumber, "From: FrizzyCube_Booking
Reply-To: $from
X-Mailer: PHP/" . phpversion());
?>

```

**Actionscript on the first frame (This was revised in suggestion that the prior code was old):**

```auto

stop ();
function lineAdapt()
{
message_send = message;
while (msg_count == msg_count + 1)
{
if ((substring(message_send, msg_count, 2)) == "\r")
{
message_send = (substring(message_send, 1, msg_count - 2)) + "
" + (substring(message_send, msg_count + 2, (length(message_send)) - msg_count + 2));
}
}
message = message_send;
delete msg_count;
delete message_send;
}

```

\*\*Submit Button Actionscript \*\***(This was revised in suggestion that the prior code was old):**

```auto

on (release)
{
if ((from == "") || (subject == "") || (message == "") || (fullname == "") || (contactnumber == "") || (yourwebsite == ""))
{
stop();
}
else
{
lineAdapt();
loadVariablesNum("mailing.php3", 0, "POST");
gotoAndStop(2);
}
}

```
