here is my function:
function alert($msg)
{
echo "<script>alert('$msg');history.back();</script>";
}
and this is how i call the function:
if (statement is true)
{
Update the query!
}
}else{ alert("Please enter numeric in age");echo formupdateadd2 ();}