This is a discussion on Flash, PHP and mysql within the alt.comp.lang.php forums, part of the PHP Programming Forums category; I`m using Flash actionscript method LoadVars.sendAndLoad() to send user input to a PHP script. Getting the stuff into ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I`m using Flash actionscript method LoadVars.sendAndLoad() to send user
input to a PHP script. Getting the stuff into mysql works fine. Outputting the updated db in Flash also works fine. I also want PHP to send an email for each input to the mysql db. But the emails looks like this (when testing I also use some local norwegian characters): gb_name39=navn%20%C3%A6%C3%B8%C3%A5%C3%86%C3%98%C3 %85 How do I make this readable in the emails send from PHP? Have tried various PHP functions without much luck. Oeyvind -- http://home.online.no/~oeyvtoft/ToftWeb/ |
|
|||
|
øyvind toft wrote:
> I`m using Flash actionscript method LoadVars.sendAndLoad() <snip> > > I also want PHP to send an email for each input to the mysql db. > > But the emails looks like this (when testing I also use some local > norwegian characters): > > gb_name39=navn%20%C3%A6%C3%B8%C3%A5%C3%86%C3%98%C3 %85 > Jings - I'd have thought sending an email would be the *easy* part. Break it down. try just sending a simple email. When you've cracked that have a think about how you want to handle the i18n stuff - my first choice would be to send it as inline HTML - there are lots of PHP classess for generating html mails. Try phpclassess.org if you don't want to do the PEAR thing. Its difficult to be more specific without knowing what the email was supposed to say. HTH C. |
|
|||
|
øyvind toft wrote:
> But the emails looks like this (when testing I also use some local norwegian > characters): > > gb_name39=navn%20%C3%A6%C3%B8%C3%A5%C3%86%C3%98%C3 %85 > > How do I make this readable in the emails send from PHP? Have tried various Try running the input through urldecode() before sending it. For some reason the string you receive is urlencoded. I won't hazzard any guess as to why it is urlencoded though. This is probably something in your programming. -- Tommy Gildseth http://design.twobarks.com/ |
|
|||
|
Thanks a lot guys !
utf8_decode(urldecode($rString)) did the trick ! Oeyvind -- http://home.online.no/~oeyvtoft/ToftWeb/ "Tommy Gildseth" <gildseth@start.no> wrote in message news:129ojpqradj3j6e@corp.supernews.com... > øyvind toft wrote: > >> But the emails looks like this (when testing I also use some local >> norwegian characters): >> >> gb_name39=navn%20%C3%A6%C3%B8%C3%A5%C3%86%C3%98%C3 %85 >> >> How do I make this readable in the emails send from PHP? Have tried >> various > > Try running the input through urldecode() before sending it. > For some reason the string you receive is urlencoded. I won't hazzard any > guess as to why it is urlencoded though. This is probably something in > your programming. > > -- > Tommy Gildseth > http://design.twobarks.com/ |