I'm using this code to attempt to assign a variable through php, then retrieve the variable within a java applet. The problem is... well it doesn't seem to work. The applet loads but it doesn't load the file. Here's my code...
<?php
$playrom=http://maverik247.com/vnes/roms/dkong.nes;
?>
<applet name="vNES" code="vNES.class" archive="http://maverik247.com/vnes/vnes203.jar" width="512"
height="480">
<param name="sound" value="on" />
<param name="timeemulation" value="on"/ >
<param name="fps" value="off" />
<param name="stereo" value="off" />
<param name="rom" value="<?php echo $playrom;?>" />
<param name="showsoundbuffer" value="off" />
<param name="scale" value="on" />
<param name="scanlines" value="off" />
<param name="nicesound" value="on" />
<param name="romsize" value="45056" />
</applet>
The following code DOES work, but as you can see, it doesn't allow anything but the predefined URL...
<param name="rom" value="http://maverik247.com/vnes/roms/dkong.nes" />
Can anyone help please?
Eventually, $playrom will need to get it's data from a URL such as "http://maverik247.com/vnes/roms/play.php&game=dkong.nes" but for right now, I'm just trying to learn how to pass the variable this way. (I figure step by step is the way to go so I don't get confused when things don't work.)