# Flash & PHP mail form problem

**URL:** https://forum.kirupa.com/t/flash-php-mail-form-problem/139464
**Category:** Uncategorized
**Created:** [March 3, 2005, 4:38am UTC](https://forum.kirupa.com/t/flash-php-mail-form-problem/139464 "2005-03-03T04:38:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rykong196](https://avatars.discourse-cdn.com/v4/letter/r/2acd7d/32.png) [@rykong196](https://forum.kirupa.com/u/rykong196)
#### Post date: [March 3, 2005, 4:38am UTC](https://forum.kirupa.com/t/flash-php-mail-form-problem/139464/1 "2005-03-03T04:38:41Z")

</div>

Hi!

I tried out the tutorial on creating forms in flash with PHP from [http://www.kirupa.com/developer/actionscript/flash\_php\_email.htm](http://www.kirupa.com/developer/actionscript/flash_php_email.htm)

It works great, however I had to add some extra stuff, as the form has the request as below : firstname, lastname, address, phone, website and comments.

In the PHP coding for email.php from Kirupa’s example, the code is as below:  
$message = $\_POST[“message”]"];

However, I’ve added the input text in flash for address, phone and url address the user can submit to. I changed the coding below, and please dun laugh as I just started wading the water with PHP:  
$message = $\_POST[“addressbar”]. $\_POST[“website”]. $\_POST[“phone”]. $\_POST[“comments”];

When I click the submit button, it works fine, accept when I check in my email, the contents in “addressbar”, “website”, “phone” and “comments” are all joined together with no space in between. Example as below when I check my email to test the form.

POBOXTestingCountry1200www.google.com11220035

Is there any way to separate them to look like this in my email?:

POBOXTesting  
Country  
1200  
[www.google.com](http://www.google.com)  
11220035

Do help! Boss is breathing down my neck!
