Go to with htm(php) code

hello,

so first i am a flash rookie, but with good skills in php.

I want that my flash movie starts at different frames depending which (php) page has been loaded.

so which means pageid=3 start at frame 3 and so on.

can someone tell me how to do this?

i tried this here

and PHP/HTML
<param name=“movie” value="/navigation.swf?initialframe=3" />

SWF FIle:
if (initialframe == “3”) {facts.onRelease = function(){gotoAndStop(3);}}

thanks for help.
cheers from vienna