# PHP form problem

**URL:** <https://forum.kirupa.com/t/php-form-problem/246160>\
**Category:** programming\
**Created:** [December 7, 2007, 4:39pm UTC](https://forum.kirupa.com/t/php-form-problem/246160 "2007-12-07T16:39:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roughnight](https://avatars.discourse-cdn.com/v4/letter/r/3bc359/32.png) [@Roughnight](https://forum.kirupa.com/u/Roughnight)\
**Post date:** [December 7, 2007, 4:39pm UTC](https://forum.kirupa.com/t/php-form-problem/246160/1 "2007-12-07T16:39:51Z")

</div>

hi, i recently learned how to make a php contact form for flash websites, i got it working and everything, the only problem is, whenever i try to test it and send an email, the text is all jumbled with code in the email i receive, it looks like its text formatting code or something, here is the php code im using:

\<?  
$SenderEmailAddr = $\_POST[‘email’];

```
$Subject = "Marena Studios Information Request";
$SenderName = $_POST['name'];

$EMailAddr = "radicaldreamr@gmail.com";

$FromAddr = "FROM: " . $SenderName;

$MailContent = " Name: " . $_POST['name'] . "

```

";  
$MailContent .= " Home Phone: " . $\_POST[‘phone’] . "  
";  
$MailContent .= " EMail Address: " . $\_POST[‘email’] . "  
";  
$MailContent .= " Message: " . $\_POST[‘message’] . "  
";

```
mail($EMailAddr, $Subject, $MailContent, $FromAddr); 

```

// Automatic Response

```
$Subject = "Marena Studios Information Request Auto-response";
$SenderEmailAddr = $_POST['email'];
$EMailAddr = $SenderEmailAddr;    

$FromAddr = "FROM: Marena Studios";

$MailContent = "Thank you for your interest in Marena Studios." . "

```

";  
$MailContent .= “We will contact you shortly.”;

```
mail($EMailAddr, $Subject, $MailContent, $FromAddr); 

```

// echo “&mail\_sent=true”;

?\>

and here is what the email i get looks like :

```
                 Name: &lt;TEXTFORMAT LEADING=\"1\"&gt;&lt;P ALIGN=\"LEFT\"&gt;&lt;FONT FACE=\"RotisSemiSans Bold\" SIZE=\"12\" COLOR=\"#666666\" LETTERSPACING=\"0\" KERNING=\"0\"&gt;Michael&lt;/FONT&gt;&lt;/P&gt;&lt;/TEXTFORMAT&gt;
           Home Phone: &lt;TEXTFORMAT LEADING=\"1\"&gt;&lt;P ALIGN=\"LEFT\"&gt;&lt;FONT FACE=\"RotisSemiSans Bold\" SIZE=\"12\" COLOR=\"#666666\" LETTERSPACING=\"0\" KERNING=\"0\"&gt;223-2332&lt;/FONT&gt;&lt;/P&gt;&lt;/TEXTFORMAT&gt;
        
              Message: &lt;TEXTFORMAT LEADING=\"1\"&gt;&lt;P ALIGN=\"LEFT\"&gt;&lt;FONT FACE=\"RotisSemiSans Bold\" SIZE=\"12\" COLOR=\"#666666\" LETTERSPACING=\"0\" KERNING=\"0\"&gt;testing testing testing&lt;/FONT&gt;&lt;/P&gt;&lt;/TEXTFORMAT&gt;

```

if anyone can tell me howto fix i would grealy appreciate it
