Forum Moderators: coopster
Got following java script code, but when i embed it within my php script keep getting errors.
How do it do it so i dont get errors
function myFunction() { f = document.forms[0]; f.result.value = f.childPrices.value * 10; }
<?php php code here ?> <html> <head> <script type="text/javascript"> your function here </script> <?php more PHP here if needed ?>
Make sure you are escaped from PHP mode before you start in javascript!
Good luck and HTH
mbcx9rvt