15 March 2010 [Monday] @ March 15, 2010 edit
(php) Mailform and HTML tagsI'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:
// 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: $afsenderrnContent-type: text/html; charset=iso-8859-1");
?>
The raw mail data:
Hi,
How are you doing? -check out this link.
What I wrote in my mailform:
Hi,
How are you doing? -check out this link.
Have a nice day :snug:
Any help and hints are much appreciated ;)
Just got back from a small trip to Italy.
I actually did post all the php code in the first post. So I tried to delete the utf_decode thing, but that didn't help.. Do you (or someone else:smirk: ) have any other suggestions?
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)
#If you have any other info about this subject , Please add it free.# |
| More »