k, i know this a php board 🙂 but, someone HAS to know javascript at least a little bit. all i'm trying to do is a pass a variable into javascript.. and i'm completely stumped.. here's the code:
<?php
$a = '3';
?>
if (a > <?php echo $a; ?>) alert('Article '+a+' has been emailed to you.');
it doesn't work, and i don't know how to make it work... any ideas? thoughts? thanks...
i just thought that maybe javascript doesn't even know a variable in php exhists cuz it's client side.. .. thoughts? thanks