http://elad.fire-serv.net/add.html
אני עשיתי ועבד טוב.
הקוד שעשיתי:
PHP קוד:
<html dir="rtl">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1255">
<title>test</title>
</head>
<script>
function CheckForm()
{
var frm = document.add;
if(frm.name.value=="")
{
alert('משהו');
frm.name.focus();
return false;
}
return true;
}
</script>
<body>
<form method='POST' action='add.php' name="add" id="add" onSubmit="return CheckForm()">
<p dir="rtl"><span lang="he"><b><font size="3">תרשום משהו</font></b></span><b>
<font size="4">
<input type='text' name='name' size='20'></font></b></p>
<input type='submit' value='המשך' name="id" id="id" ></b></p>
</form>
</body>
</html>