Jump to content

kvegas

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

kvegas's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I'm trying to pass the variable "romname" to the rom parameter in the applet, but it's not working. The applet loads but the file in the variable doesn't. The guys in the PHP section said that the PHP code checked out and that it must be an applet issue, so here's my code. Thanks! <?php $romname = "http://maverik247.com/vnes/roms/mariobros.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($romname);?>" /> <param name="showsoundbuffer" value="off" /> <param name="scale" value="on" /> <param name="scanlines" value="off" /> <param name="nicesound" value="on" /> <param name="romsize" value="24592" /> </applet> I've tried directly assigning the variable in the parameter ( <param name="rom" value="http://maverik247.com/vnes/roms/mariobros.nes" /> ) and it does work, however I need to be able to assign from a variable (which will eventually be passed to from the URL to PHP, and then to the applet).
  2. Is there possibly another way to achieve the results I'm after?
  3. Oh gosh, sorry. I didn't realize I'd posted the code that way. It's a mistake I've already corrected, and it wasn't the problem sadly.
  4. Made the change, still not working... here's the current 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=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>
  5. 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.)
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.