# Problems with forms

**URL:** <https://forum.kirupa.com/t/problems-with-forms/287701>\
**Category:** Uncategorized\
**Created:** [May 5, 2009, 1:17pm UTC](https://forum.kirupa.com/t/problems-with-forms/287701 "2009-05-05T13:17:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan\_Woodbury](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@Dan\_Woodbury](https://forum.kirupa.com/u/Dan_Woodbury)\
**Post date:** [May 5, 2009, 1:17pm UTC](https://forum.kirupa.com/t/problems-with-forms/287701/1 "2009-05-05T13:17:25Z")

</div>

i am trying to create a simple mail form in flash to be sent through php.

the actionscipt:

```auto
on (release) {
    getURL("http://www.dw20.co.uk/pages/contact_form.php", "\"\"", "POST");
}

```

the php:

```auto
<?
    $name = $_POST["name"];
    $email = $_POST["email"];
    
    $to = "dan@dw20.co.uk";
    $subject = "Test mail";
    $message = "Hello! This is a simple email message.";
    $from = "$email";
    $headers = "From: $from";
    mail($to,$subject,$message,$headers);
    echo "Mail Sent.";
?>

```

i have set the input fields with variable names etc but it does not work and when i click submit, the url that is loaded comes up like this:

```auto
http://www.dw20.co.uk/pages/contact_form.php?name=%3CTEXTFORMAT+LEADING%3D%222%22%3E%3CP+ALIGN%3D%22LEFT%22%3E%3CFONT+FACE%3D%22Liberation+Sans%22+SIZE%3D%2212%22+COLOR%3D%22%23000000%22+LETTERSPACING%3D%220%22+KERNING%3D%220%22%3Edan%3C%2FFONT%3E%3C%2FP%3E%3C%2FTEXTFORMAT%3E&email=%3CTEXTFORMAT+LEADING%3D%222%22%3E%3CP+ALIGN%3D%22LEFT%22%3E%3CFONT+FACE%3D%22Liberation+Sans%22+SIZE%3D%2212%22+COLOR%3D%22%23000000%22+LETTERSPACING%3D%220%22+KERNING%3D%220%22%3Eeggbury%40hotmail.com%3C%2FFONT%3E%3C%2FP%3E%3C%2FTEXTFORMAT%3E

```

you can try the form at: [http://www.dw20.co.uk/index2.php](http://www.dw20.co.uk/index2.php) under ‘contact me’

the email sends fine with the information but along with the email address and name i get this also attached to it:

```auto
TEXTFORMAT LEADING=\"2\"P ALIGN=\"LEFT\"FONT FACE=\"Liberation Sans\" SIZE=\"12\" COLOR=\"#000000\" LETTERSPACING=\"0\" KERNING=\"0\"/FONT/P/TEXTFORMATTEXTFORMAT LEADING=\"2\"P ALIGN=\"LEFT\"FONT FACE=\"Liberation Sans\" SIZE=\"12\" COLOR=\"#000000\" LETTERSPACING=\"0\" KERNING=\"0\"/FONT/P/TEXTFORMAT

```

any help would be great, thanks
