I have some question about concatenation php string to javascript string ...
for example:
php variable
$man = "Jamse";
and have javascript function
<script>
if (document.getElementById("fname").value == "") {
q = false;
msg = <?php echo 'Please fill first name'.$formErrors['fname'].'\n' ?>;
}
</script>
i want to do something like this can anyone help me ?