I've been googling quite a bit, and i've noticed that there're a lot of different views on it. Some people say that it is possible to mix and PHP and Javascript together, some say not.
I'm a bit confused. -__-
Anyway, here goes my problem. I'm working with a multi-language site, and that being said, i have a database of content placeholders (the languages available are EN, DE, ES and so on). I'm calling out the value by this:
<? echo showDB($_SESSION['lan'], 'val_f_name');?>
But when the validation runs, it gives me an empty prompt instead of "Please fill in your Email Address".
I replaced "Please fill in your Email Address" with the above php code.
function validate_form_email()
{
valid = true;
var emailID=document.user_form.email_address
var dt=document.user_form.dateofbirth
if ((emailID.value==null)||(emailID.value=="")){
alert ( "Please fill in your Email Address" );
valid = false;
}
else if (echeck(emailID.value)==false){
emailID.value=""
valid = false;
}
**this is just part of the javascript.
Note that Connection to mysql database is working fine.