|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have been pulling my hair out for 3 days, and there isn't much left to pull out. I have posted in practically every forum under the sun and no one can help me out.
Here is my problem: I have a website done in php. There is a header.php, index.php, and footer.php. The navigation(flash menu) is in the header.php. The index.php has this following code in it: <?php if ($c != "") { include("main_content_".$c.".php"); } else { include("main_content_1.php"); } ?> index.php loads whatever page according to what the variable is. If I click on the news button then 'c' in index.php would be set to 3 and index would open up main_content_3.php. The header and footer is the same throughout the site. With the old menu everything worked fine. I would click on the text menu and I would be sent to the page I needed to go. Now for the flash code(code snippet from one of the buttons): onClipEvent (mouseUp) { getURL("index.php?c=2", "POST"); } I can't get it to open it up in the same page. I have tried putting getURL("index.php?c=2", "_top", "POST"); to self, parent, blank etc... It works perfectly fine if it opens up in a blank(new) window, but trying to open it up in the same window is like trying to make a pig fly. In the php script I have added $_GET[c]; and $HTTP_GET_VARS[$c]; etc..., but nothing works. I would greatly appreciate any help! |
|
#2
|
|||
|
|||
|
try using loadVars
is var t = new LoadVars(); t.c = 3 t.send("index.php", "POST"); with this also change $_GET[c] to $_POST["c"] |
|
#3
|
|||
|
|||
|
Thanks for the help! This seems to work. Can't believe that is all that it was.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > php not reading data correctly from flash |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|