Php email in flash with foreign characters
- Started
- Last post
- 6 Responses
- ********
Hey everyone,
I have this php that I use with my flash samples, however, the encoded text always comes out with '??????' so my question is, is there a way to add a line to the script below so that when I receive my emails, ???s won't show and I get the proper encoded text, ie. the turkish characters, öçşiğüı ...
Thanks in advance!!
<? // Enter your email address here $adminaddress = "sample@sample.com"; // Enter the address of your website here MUST include http://www. $siteaddress ="http://www.sample.com"; // Enter your company name or site name here $sitename = "sample"; // Gets the date and time from your server $date = date("m/d/Y H:i:s"); // Gets the IP Address if ($REMOTE_ADDR == "") $ip = "no ip"; else $ip = getHostByAddr($REMOTE_ADDR); //Process the form data! // and send the information collected in the Flash form to Your nominated email address IF ($action != ""): mail("$adminaddress","sample", "FAO: Admin @ $sitename \n First Name: $fname Last Name: $lname Email: $vemail Company: $cname Telephone: $telno\n The visitor commented: ------------------------------ $comments ------------------------------ Logged Info : ------------------------------ Using: $HTTP_USER_AGENT Hostname: $ip IP address: $REMOTE_ADDR Date/Time: $date","FROM:$adminaddress"); //Confirmation is sent back to the Flash form that the process is complete $sendresult = "Sent!"; $send_answer = "answer="; $send_answer .= rawurlencode($sendresult); echo "$send_answer"; ENDIF; ?>
- uan0
make sure youre working with utf-8 (flash does it default i think, but check the serverside)
- ********0
I couldnt find a solution to place utf8 or windows1254 into this script, maybe you can help me out please?
- chrisRG0
how r u posting it from Flash to PHP?
- Mishga0
is this any help?
http://www.kirupa.com/forum/show…
- ********0
Don't you just put an -N in front of the text? Like before the first quotation mark? Or is that just for updating/ inserting in tables themselves.
- ********0
I guess, instead of adding a line or two, building a new flash php form would be easier, dont you think? thanks for you help guys anyway! i appreciate it !