Ok. I don't think you are quite getting how this works.
I assume you want an alert box when the person submits the form.
<html>
<head>
<title>Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript1.2">
function alertuser()
{
alert("Data updated ! ");
}
</script>
</head>
<body>
<form name="form1" method="post" action="wherever.php" onSubmit="javascript:alertuser()">
<input type="submit" name="Submit">
</form>
</body>
</html>
But in reality you do not really want to put a javascript alert, it would be far better to determine with php that a submission had occured and then print an html page saying thank you for the submission etc.
Please note that the javascript after the onsubmit should be all one word, NOT java script.
Does anyone know if this is a bug in phpbuilder as it always decided to separate the word even when they were wrote together?