Hola rezocrew
Pongamos por caso que tienes un archivo llamado ingresos.asp. Este archivo ha de constar con algo así
Código PHP:
<%
Dim vac
vac = Request.Form("vacio")
IF vac = "" then
%>
<form name="f" id="f" action="./ingresos.asp" method="post">
<input type="text" value="" name="rut" />
<input type="hidden" value="1" name="vacio" />
<input type="submit" value="Codificar" />
</form>
<%
ELSE
Dim ruta
ruta = Request.Form("rut")
SQL="Select campo from tabla where campo = '"&ruta&"'"
rs.Open SQL, oConn, 0,1
if not rs.eof then
%>
Esta ruta ya existe
<%
else
SQL="INSERT INTO tabla (campo) VALUES ('"&ruta&"');"
oConn.Execute(SQL)
%>
Ruta no repetida
<%
end if
END IF
%>
Suerte