using java variable insibe php
Hello,
I'm trying to use a variable from java inside php.
This is my code:
Now this is my result on a Webbrowser:
1024 width = 700 border = 1>
Test
Also when i try to do $heigth = $heigth +2 it returns 2 instead of 1026.
It is driving me crazy.
What am I doing wrong?
Best regards,
Jeppen
I'm trying to use a variable from java inside php.
This is my code:
<?php $heigth = "<SCRIPT language=JavaScript>document.write(parseInt(screen.height))</SCRIPT>";
echo "<table height=$heigth width = 700 border = 1>";
echo "<tr>";
echo "<td>Test</td>";
echo "</tr>";
echo "</table>";
?>
Now this is my result on a Webbrowser:
1024 width = 700 border = 1>
Test
Also when i try to do $heigth = $heigth +2 it returns 2 instead of 1026.
It is driving me crazy.
What am I doing wrong?
Best regards,
Jeppen
Jeppen
February 22,