McInfo
I stand corrected , your solution with the bracketing did work! ON a whim I tried it again , and viola!
Thanks a bunch. I hope it works everywhere I have had this issue.
EDIT-----------------------
I have one remaining issue I can not seem to resolve, and it has to do with nesting PHP in Javascript. Is this possible?
I have (note that the message is in English and Spanish on the first code sample)
Code: Select all
function checkme() // Define function checkme
{
if (document.forms[0].adtitle.value == "")
{
alert("The Title field is empty. El Campo de titulo esta vacio.");
document.forms[0].adtitle.focus();return(false)
}
...
I want to do something like this but it apparently does not work.
Code: Select all
function checkme() // Define function checkme
{
if (document.forms[0].adtitle.value == "")
{
alert(<?php echo $lang['JS_MESSAGE_TITLE'] ; ?>);
document.forms[0].adtitle.focus();return(false)
}