Hey guys, i was trying to use alert message for php string,but dunno why the alert can`t be displayed, so please help me where i did wrong, THANKS SO MUCH
here is the code:[code=javascript]
<SCRIPT LANGUAGE=JAVASC RIPT>
function disp_alert()
{
alert = "Serial Number Must Be Start With S";
}
</SCRIPT>[/code]
php code:
[code=php]
if(substr($sn,0 ,1) == "S")
else
{
$message="Seria l Number Must Be Start With S.";
} [/code]
JS code:
[code=html]
<input name="sn" type="text" onKeyDown="disp _alert()" "if(event.keyCo de==13) event.keyCode=9 ;"size="26" >[/code]
here is the code:[code=javascript]
<SCRIPT LANGUAGE=JAVASC RIPT>
function disp_alert()
{
alert = "Serial Number Must Be Start With S";
}
</SCRIPT>[/code]
php code:
[code=php]
if(substr($sn,0 ,1) == "S")
else
{
$message="Seria l Number Must Be Start With S.";
} [/code]
JS code:
[code=html]
<input name="sn" type="text" onKeyDown="disp _alert()" "if(event.keyCo de==13) event.keyCode=9 ;"size="26" >[/code]
Comment