salve a tutti
dato il seguente codice:
come posso impedire che la pagina si reindirizzi verso msgrichiestaNNg.asp? ma dare semplicemente il messaggio di errore?Codice PHP:
<html>
<script language="vbscript">
sub controllo
a= document.getElementById("txtarco").value
if isnumeric(a) then
prova=false
else
prova=true
end if
end sub
</script>
<body bgcolor="#FFFFFF">
<form ACTION="MsgRichiestaNNG.Asp?Opera=Insert&ID_Item=0" METHOD="post" NAME="FrmNuovo" >
<input type="submit" value="Inserisci NNG" id="CmdInsert" name="CmdInsert" onclick="Controllo()">
<input type=text id="txtarco" name="txtarco" size="20">
</form>
</body>
</html>
grazie