Groups | Blog | Home
all groups > flash (alternate) > january 2005 >

flash (alternate) : Flash Form changing variable names during POST?


oo
1/23/2005 1:44:58 PM
Hi - hoping someone can help,
I have implemented a form in flash, using POST to send the contents to my
PHP page that processes it.
problem is - i am sending a variable name like "this_town" from flash, but
it actually seems to send "this%5Ftown" which breaks my form processor - how
can i make it send the variable name intact without changing anything?

thanks




XxLicherxX
1/25/2005 1:11:31 PM
I am not sure how to answer you specific question, but I might have a
work around for you.

Why not just use the str_replace() method in PHP to change the "%5"
back into a "_" char before you start processing the information that
was passed into your form?

$correct_this_town = str_replace("%5","_",$this_town");

Also I am a newbie to Flash and came across your post, while trying to
find out how to POST variables over to a PHP page. Could you possibly
show me how to do that?

Thanks and hope my workaround helps

Dave
XxLicherxX
1/26/2005 5:22:36 AM
Perfect,

Thank you.
oo
1/26/2005 11:32:00 AM
[quoted text, click to view]

Hi Dave

Thanks for that - most helpful.
Regarding the form posting from flash I followed the tutorial at
http://www.actionscripts.org/tutorials/beginner/html_forms/index.shtml

Hope it helps you!
Pete

AddThis Social Bookmark Button
View Other Months
January 2005
February 2005