quote:
Originally posted by DJeX
Would I just put it at the end of the PHP code out of the <?php ?> tags?
Yes, it can be put like that...
code:
<?
// php code
?>
<!-- javascript code -->
Or like this...
code:
<?
// php code
if no error
?>
<!-- javascript code -->
<?
else (some error happened)
exit
?>
Edit: note I put pseudo-code (non-PHP), just to give you an idea of how it would look. That is not correct, and should be "translated" to PHP.
I'm saying this just in case.