Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Open Flash File for current page
11-10-2011, 04:55 PM #1
- Join Date
- Nov 2010
- Thanked 0 Times in 0 Posts
Open Flash File for current page
I've been searching and searching and trying out different things, but I cannot find/get anything to work!
Basically, what I need is for when the user visits, say, "www.mypage.net/flashpage.php?=blah", the Flash object HTML "<object ..." will make the file "www.mypage.net/files/blah.swf" be the Flash file.
I've seen this done before... I just have no idea how to do it!
Could someone point me in the right direction...
11-10-2011, 06:43 PM #2
- Join Date
- Jun 2003
- Cottage Grove, Minnesota
- Thanked 1,072 Times in 1,063 Posts
// set a default in case they enter without a file specified
// if they entered a file, use it.
// now, you should make sure the file exists.
// it's OK
// it does not exist, so use the default.
// now you continue on with your page ...
// you'll use the $file variable later on, in your HTML.
blah blah blah
<object ... stuff stuff src="www.mypage.net/files/<?=$file?>" ... stuff stuff>