Hola de nuevo.
Te pongo un poco de código:
Código PHP:
<html>
<head>
<script type="text/javascript">
function pulsar(e) {
tecla=(document.all) ? e.keyCode : e.which;
if(tecla==32) return false;
}
</script>
</head>
<body>
<input type="text" onkeypress="return pulsar(event)" />
</body>
</html>
Saludos,