# (php) Mailform and HTML tags

**URL:** <https://forum.kirupa.com/t/php-mailform-and-html-tags/186711>\
**Category:** flash\
**Created:** [April 23, 2006, 10:30pm UTC](https://forum.kirupa.com/t/php-mailform-and-html-tags/186711 "2006-04-23T22:30:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Macro\_design](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Macro\_design](https://forum.kirupa.com/u/Macro_design)\
**Post date:** [April 23, 2006, 10:30pm UTC](https://forum.kirupa.com/t/php-mailform-and-html-tags/186711/1 "2006-04-23T22:30:37Z")

</div>

Hi

I’m currently trying to create a mailform which supports HTML tags. I’m sending the mail out from my flash file to a .php file, which sends the email.

However, when I receive the mail, the link disappears. So I look in the raw mail (I’m using Gmail), and each time there is a quotationmark ", a backslash , is inserted before.

Now, I’m pretty sure it’s due to the PHP code, is there someway to embed some of the text?

My PHP code:

```php
<?php

// name sent from Flash
$navn = utf8_decode($_POST['navn']);

// e-mail sent from Flash
$email = utf8_decode($_POST['email']);

// message sent from Flash
$kommentar = nl2br(utf8_decode($_POST['kommentar']));

// e-mails receiver
$modtager = "mortenkh@gmail.com";

// e-mails topic
$emne = "E-mail sendt via Flash formmail";

// e-mails sender
$afsender = $navn . "<" . $email . ">";

// send e-mail
mail($modtager, $emne, $kommentar, "From: $afsender
Content-type: text/html; charset=iso-8859-1");

?>

```

The raw mail data:

```auto
Hi,<br />
<br />
How are you doing? -check out this <a href=\"http://www.macro-design.org\">link</a>.

```

What I wrote in my mailform:

```auto
Hi,

How are you doing? -check out this <a href="http://www.macro-design.org">link</a>.

```

Have a nice day :snug:

---

<div class="post-metadata">

**Author:** ![vintage](https://avatars.discourse-cdn.com/v4/letter/v/e68b1a/32.png) [@vintage](https://forum.kirupa.com/u/vintage)\
**Post date:** [April 23, 2006, 11:05pm UTC](https://forum.kirupa.com/t/php-mailform-and-html-tags/186711/2 "2006-04-23T23:05:44Z")

</div>

Do you have somewere in youre phpfile addslashes($\_POST[‘something’]); ?  
If so, then you know what it does 🙂

if you posted youre compleet php code, then i would suggest to skip the [utf8\_decode](http://be2.php.net/utf8_decode)
