Passing variables from Flash to PHP

This is a discussion on "Passing variables from Flash to PHP" within the Flash & Multimedia Forum section. This forum, and the thread "Passing variables from Flash to PHP are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 21st, 2006, 11:49
Junior Member
Join Date: Jul 2006
Location: South Wales, UK
Age: 23
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Passing variables from Flash to PHP

I'll qualify this by saying I have pretty much zero workable knowledge of Flash. My friend is creating a Flash menu, I am doing the site framework, etc.

We're attempting to load content into a page using a PHP GET method like so:
PHP: Select all

<?php
     
switch($_GET['instyle']){
            case 
'home': include('home.htm');
                  break;
            case 
'about': include('about.htm');
                  break;
            default: include(
'home.htm');
            }
     
?>
Which is just fine working with HTML links, but we're trying to use the Flash menu to use links like:
index.php?instyle=home
index.php?instyle=about

And so forth. I thought it would just be a case of putting those links in, but that doesn't work.

We've looked at this link:
http://www.actionscript.org/forums/a...3/t-63373.html

But I'll be honest - I don't know if that's right or not. Is there a simpler way we're missing?
Reply With Quote

  #2 (permalink)  
Old Aug 22nd, 2006, 08:35
Junior Member
Join Date: Jul 2006
Location: South Wales, UK
Age: 23
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Passing variables from Flash to PHP

/hopeful bump
Reply With Quote
  #3 (permalink)  
Old Aug 26th, 2006, 05:07
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Re: Passing variables from Flash to PHP

Did you solve the problem?
Reply With Quote
  #4 (permalink)  
Old Aug 26th, 2006, 13:41
Junior Member
Join Date: Jul 2006
Location: South Wales, UK
Age: 23
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Passing variables from Flash to PHP

Unfortunately not (yet)
Reply With Quote
  #5 (permalink)  
Old Aug 29th, 2006, 01:10
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Re: Passing variables from Flash to PHP

Try posting this in the PHP forum as well. Someone there might know the answer. Sorry I could not help you. I have had to deal with this sort of actionscript code before.
Reply With Quote
  #6 (permalink)  
Old Aug 31st, 2006, 09:44
Reputable Member
Join Date: Jul 2006
Location: exeter
Age: 20
Posts: 103
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Passing variables from Flash to PHP

Not totally sure havent ran in toanything like this im not a fond user of php but where your code looks like this....
index.php?instyle=home
index.php?instyle=about
try doing this...
index.php?instyle == home
index.php?instyle == about

i had a problem where i forgot those before and it screwed everything up if not that try putting some of these ; on the ends of those two statements sorry i could not be of much help!
rusty
Reply With Quote
  #7 (permalink)  
Old Aug 31st, 2006, 14:05
Junior Member
Join Date: Jul 2006
Location: South Wales, UK
Age: 23
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Passing variables from Flash to PHP

Well, for some bizarre reason what we ended up with was almost exactly the same as a standard link - it was tried in the first place but perhaps we had a syntax error!
Spent hours trying to find a new solution but had no joy.

Unfortunately, the whole endeavour was a bust anyway - getting new content to load in index.php?page=something refreshes the whole thing, including the Flash menu, thereby totally negating its design! >_<
Reply With Quote
Reply

Tags
passing, variables, flash, php

Thread Tools

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
passing variables values using POST sudhakararaog Web Page Design 2 Mar 18th, 2008 08:12
Passing variables from PHP to Flash tox0tes Flash & Multimedia Forum 4 Dec 29th, 2007 06:46
Passing Flash variables between frames lostnights Flash & Multimedia Forum 0 Jan 22nd, 2007 17:09
passing post variables benbacardi PHP Forum 5 Jul 5th, 2005 22:13
PLEASE HELP - Passing Variables in Querystring just_the_basix Classic ASP 40 Sep 3rd, 2004 10:46


All times are GMT. The time now is 22:49.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43