# Trouble with senocular's Flash-Based Email Form Using PHP

**URL:** <https://forum.kirupa.com/t/trouble-with-senoculars-flash-based-email-form-using-php/111147>\
**Category:** Uncategorized\
**Created:** [May 24, 2004, 4:10am UTC](https://forum.kirupa.com/t/trouble-with-senoculars-flash-based-email-form-using-php/111147 "2004-05-24T04:10:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phonicpod](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@Phonicpod](https://forum.kirupa.com/u/Phonicpod)\
**Post date:** [May 24, 2004, 4:10am UTC](https://forum.kirupa.com/t/trouble-with-senoculars-flash-based-email-form-using-php/111147/1 "2004-05-24T04:10:47Z")

</div>

I’m having a bit of trouble with the tutorial Flash-Based Email Form Using PHP by senocular.

Almost everything works OK, i can get the form to send email OK, but IF the user of the form presses ENTER in the body (“message”) input box, then i don’t get any of the text entered after that in my email…

eg.

IF the User types in the “message” field

Hello,  
I need something. Please, it would be nice.  
Signed  
Mr. User

I get in my email

Hello,

And that’s all.

The code i am using follows.

```auto

<?php
$sendTo = "alex@phonicpod.com";
$subject = "Phonicpod.com Work Enquiry";
$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["email"] .">
";
$headers .= "Reply-To: " . $_POST["email"];
$message = $_POST["message"];
mail($sendTo, $subject, $message, $headers);
?>

```

I’ve also tried using the exact source from the tutorial, but that has the same results. Is it something to do with my server or is this a bug in the code?

Thanks.

---

<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:** [May 24, 2004, 11:36pm UTC](https://forum.kirupa.com/t/trouble-with-senoculars-flash-based-email-form-using-php/111147/2 "2004-05-24T23:36:39Z")

</div>

> [@scotty](#):
>
> Looks like your message textfield is set to “single line” instead of “multiline”?
> 
> scotty(-:

Nope, it’s not. I’ve even tried the ORIGINAL source files of the tutorial uploaded to my server, and the same thing happens. :puzzle:

Anyone?

---

<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:** [May 26, 2004, 5:13am UTC](https://forum.kirupa.com/t/trouble-with-senoculars-flash-based-email-form-using-php/111147/3 "2004-05-26T05:13:49Z")

</div>

Well, seeing as the ORIGINAL source files do the same thing ([Get them here) i guess it’s either a problem with the tutorial or the server i’m uploading to. (my provider supports PHP www.readyhosting.com](http://www.kirupa.com/developer/actionscript/fla/Kirupa_flash_php_email.zip))

As I said before i downloaded the zip and uploaded all the files used in the tutorial (just changing the email address in the PHP code), and i get the same result. I’ve also tried different email addresses and still no luck.

---

<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:** [May 26, 2004, 11:37am UTC](https://forum.kirupa.com/t/trouble-with-senoculars-flash-based-email-form-using-php/111147/4 "2004-05-26T11:37:39Z")

</div>

Weird, I did the same tutorial and had no problem with that.  
That’s why I asked for your fla;)

scotty(-:
