Re: Passing variables from Flash to PHP
| From: | drisner at fastmail dot fm | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: Passing variables from Flash to PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-182167@lists.php.net to get a copy of this message | ||
On Thu, 1 Apr 2004, Edward Tilley wrote:
> Hi - I am an IIS, PHP 4.3 new user running on Win2k server. I need to
> pass a variable ( $flash = 1 ) back out to my PHP script and can't find
> any examples of this working after 2 days of looking. I can't get a
> urldecode to work and I don't want a WDDX because I don't see pertinent
> WinOS examples on the .org website.
>
> Other methods I've tried included running a
> "getURL("change_flash_value.php") " script in Flash - the PHP script
> didn't execute and the value of $flash didn't change in keeping.
It think you will want getURL("change_flash_value.php?flash=1") and then
grab the flash variable from the $_REQUEST array.
There is a great book called "Macromedia Flash MX Professional 2004 for
Server Geeks" by Nate Weiss (ISBN: 0735713820) that, while it doesn't have
PHP examples, does a great job of discussing Flash/server communication.
--
David G. Risner
Software Engineer -- California State University, Los Angeles
http://www.risner.org/david/