(I copied the code below from a tutorial but it dose not work out, and I wonder if I should do something specific on the page receiving the submitted data. )

```
<script>
function stopsubmit()
{
document.getElementById("submit").addEventListener("click",function(event)
{
if(document.getElementById("name").value="")
{
event.preventDefault();document.getElementById("erroeMessage").innerHTML="Please write your name";return false;
}
else
{
return true;
}
}
)
}
</script>

```