I've got a problem and I just can't seem to solve it. Let me explain.
I've got 3 files:
var1.php, flash.php and test7.swf
var1.php
Code: Select all
<?php
<?
$test = 0;
for ($i = 0; $i<5; $i++)
{
$test++;
print "<FONT FACE="verdana" SIZE=2><a href=flash.php?number=$test target="_blank">link</a></FONT>";
print "<BR>";
}
?>
?>Code: Select all
<?php
<?php
$nr = $_REQUEST['number'];
if ($nr == 1)
{
$grondkaart='test.jpg';
}
echo "&pic=http://***/phpserver/****/$grondkaart";
?>
?>There's a code in my flash file that gets the variable out of flash.php.
If I put this line in flash.php at the bottom
Code: Select all
header("Location: test7.swf");I've allready tested the flash file and he does get the variable out of flash.php. The flash file works perfectly, so that's not the problem.
I can't use sessions, because when I do the session variable is allways the last number from the for loop (in this case '5');
So what I want to do is simple.
Go to the var1.php. Press link, the var pic in flash.php is then filled with the right jpeg, according to what link you pressed (1,2,3,4 or 5). I've only tested on 1 here in this example. (so far this all works) and then the file test7.swi has to be called without the header statement.
And that's where I'm stuck.
Can you help me?
I hope you understand the problem, ask questions if you don't.
*EDIT*
If I put
Code: Select all
header("Location: test7.swf");Then ofcourse I have to change my code in flash.php to this
Code: Select all
echo "&pic=http://***/phpserver/****/test.jpg";