JudgementDay
02-18-2012, 07:47 AM
Does anyone know how I can stop this error?
if ($row['size30'] > 0) {
echo '
if (document.forms["form"]["quantity"].value > '.$row['size30'].') {
alert ("Can't add because quantity exceeds availability.");
return false;
}
';
}
The problem is with the apostrophe in the word Can't. Its causing a braking out issue.
if ($row['size30'] > 0) {
echo '
if (document.forms["form"]["quantity"].value > '.$row['size30'].') {
alert ("Can't add because quantity exceeds availability.");
return false;
}
';
}
The problem is with the apostrophe in the word Can't. Its causing a braking out issue.