Non riesco a far funzionare il controllo sui campi inseriti se ho

<form NAME=login method=POST action=$PATH_INFO onsubmit="return validate()">

mentre mi funziona con

<FORM NAME=login ACTION=pagina.php METHOD=post onsubmit="return validate()">

Mi tira fuori l'errore:

Not Found
The requested URL /xxxxxx/onsubmit="return was not found on this server.

Chi mi da' una mano?