Bluehost.com Web Hosting $6.95

Flash, PHP and mysql

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 ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-23-2006
øyvind toft
 
Posts: n/a
Default Flash, PHP and mysql

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/


Reply With Quote
  #2 (permalink)  
Old 06-23-2006
Colin McKinnon
 
Posts: n/a
Default Re: Flash, PHP and mysql

ø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.

Reply With Quote
  #3 (permalink)  
Old 06-23-2006
Tommy Gildseth
 
Posts: n/a
Default Re: Flash, PHP and mysql

ø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/
Reply With Quote
  #4 (permalink)  
Old 06-24-2006
øyvind toft
 
Posts: n/a
Default Re: Flash, PHP and mysql

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/



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 03:45 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0