okay I have a php page with a form, some text fields and a submit button. In the header there's a javascript function that disable the button... now what I've already made already is a search that comes up with a number , and then an IF statement.. if the result is a certain number the javascript should be activated, I just cant figure out how to do that... I know this sounds very newbie , but I'm kinda lost here so I hope someone can help me.... thanks....
the function:
script language="javascript">
function disableButton()
{
document.form1.submitbutton.disabled=true;
}
</script
the php part:
$Total = mysql_result(mysql_query("SELECT COUNT(ID) FROM myshows"),0);
if ($Total == 623)
{
function.disableButton() or something like that ;
}