I'd like to send some parameters from HTML to Java Applet, but I want to set them first in HTML.
Can you help me? I tried:
<HTML>
<BODY>
<?php
$a=rand(0,10);
$b=rand(0,10);
echo $a,' ',$b;
?>
<P>
<APPLET ARCHIVE="jfreechart-0.9.21.jar,jcommon-0.9.7.jar" code="PoziomWody.class" width=350 height=280>
<PARAM NAME=S1 VALUE="$a">
<PARAM NAME=S2 VALUE="$b">
</APPLET>
</P>
</BODY>
</HTML>
However, I got the literal string $a
, not the value of the variable.