Is it possible to call a java function from within php codes?? (ie within the <?php ?> tags.... if so, how??
Or, can you do this the other way round?? and if so... how...
Any help will be appreciated!!
Thank you in advance
Bo&Vic
Moderator: General Moderators
Code: Select all
<?php
echo '<script type="JavaScript"> function jsfunction() { do JavaScript here; } </script>';
?>Code: Select all
<?php
echo "<a href="blah.php" onclick="jsfunction()">Link</a>";
?>Code: Select all
<?php echo '<html><body>some text</body></html>'; ?>Code: Select all
<html><body>some text</body></html>