Jump to content

elnino_php

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

elnino_php's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Unfortunantly I cant check til I am back at work tommorrow. How do I change it to utf-8. I mean, it usually has no problems showing these characters...
  2. I am new to PHP but have pt together a simple script to send of a mail. The problem is that  when I receive the mail, I dont get the æøå characters. I have looked everywhere now and cant find an answer. Hope someone can help. /M My code <? $yourname = $_POST["yourname"]; /* nick name */ $yourmail = $_POST["yourmail"]; $friendname = $_POST["friendname"]; $friendmail = $_POST["friendmail"]; $to = $_POST["friendmail"]; $subject = "HiHi!"; $body = " <html> <head> <META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=iso-8859-1\"> <title></title> </head> <body> <TABLE HEIGHT=150 WIDTH=450 ><TR><TD WIDTH=150></TD><TD><i> æøåÆØÅ ". $friendname ." </i></TD></TR></TABle> </body> </html>"; $headers = "From: Quiz man <quiz@quiz.dk>\n"; $headers .= 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; mail($to, $subject, $body, $headers); echo("Mail5 sendt"); ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.