Javascript echo via PHP

maro

New Member
\[code\]echo "<br><font face='Segoe UI' color='blue'><a href='http://stackoverflow.com/questions/3895960/#' onClick='javascript:alert(".$nam.");return false;'>".$nam."</a></font>";\[/code\]I'd like to know if there's any syntax error in the above code. I don't think alert() is being called. Thanks!
 
Back
Top