# Connect flashmenu with php

**URL:** <https://forum.kirupa.com/t/connect-flashmenu-with-php/239630>\
**Category:** Uncategorized\
**Created:** [September 24, 2007, 10:57am UTC](https://forum.kirupa.com/t/connect-flashmenu-with-php/239630 "2007-09-24T10:57:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mymelody](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@mymelody](https://forum.kirupa.com/u/mymelody)\
**Post date:** [September 24, 2007, 10:57am UTC](https://forum.kirupa.com/t/connect-flashmenu-with-php/239630/1 "2007-09-24T10:57:49Z")

</div>

Hi!  
Have problem to connect a menu in flash to a phpfile.  
The site is build in php/html. Only the menu is a swf.  
The indexpage has the swfmenu at the top of the page.  
I would like to have it like when you press a button in the menu you should be at the  
indexpage but go to different places in the indexpage. So I don’t need to reload a new page with the menu everytime I click at the menu.  
The different pages should be included in the file.

This is what I use now:  
\<?PHP  
include “main.php”;  
?\>

I guess I could use some variables in Flash, at the buttons, and use some kind of  
ifstatement in the phpcode, like this:

if (id=“main”)  
include “main.php”;  
elseif (id=“gig”) then  
include “gig.php”;  
endif

But I don’t know how to fix it in Flash and in the phpcode.Hope somenone knows what I mean…
