Código:
<% Dim id_sistema, nombre, linea, strCondicion id_sistema = cint(request.Form("sistemas")) nombre = request.Form("nombre") linea = request.Form("linea") if id_sistema <> "" then sSQL = "Select sistemas_id, sistemas_nombre, sistemas_linea FROM DS_Sistemas where sistemas_id = '"& id_sistema &"'" Set rs = cnn.execute(sSQL) if not rs.eof then Sistema = rs("sistemas_id") Nombre = rs("sistemas_nombre") Linea = rs("sistemas_linea") strCondicion = 0 else strCondicion = 1 Sistema = id_sistema Nombre = "" Linea = "" end if rs.close end if %> <html>..... <form method="post" action="<%request.ServerVariables("SCRIPT_NAME")%>" id="form1" name="form1"> <table width="100%" cellpadding="0" cellspacing="0"> <tr><td>Número de Sistema: <br /><span class="dtobligatorio"> * </span>< <input name="sistemas" type="text" id="sistemas" value="<%=Sistema%>" size="20" maxlength="20" /> <input name="ver" type="image" id="ver" value="ver" src="Images/20_VER1.jpg" /> </td></tr> <tr><td>Nombre del sistema: <br /><span class="dtobligatorio"> * </span> <input name="nombre" type="text" id="nombre" value="<%=Nombre%>" size="95" maxlength="30" /> </td> </tr> <tr><td>Línea de sistemas:<br /><span class="dtobligatorio"> * </span> <input name="linea" type="text" id="linea" value="<%=Linea%>" size="95" maxlength="30"/> <input type="hidden" name="sistemas" value="<%=idSistema%>"> <% if strCondicion = 1 then %> <input name="Guardar" type="image" id="Guardar" src="http://www.forosdelweb.com/images/GUARDAR1.gif" style=" visibility: visible;" onclick="Mtdos(this)" /> <% end if%> ... </html>
Al iniciar estan los 3 botones y al darle valor al primero quiero que vaya y verifique en una tabla, sino existe pues que me despliegue el boton de guardar, lo he logrado solo quiero que inicialmente cuando cargo la pagina el input id=sistema este en blanco pero ahorita lo que tiene es un cero !! com le puedo hacer para quitarlo??
creo q es cuestion de la variable Sistema pero no hayo como solucionarlo
saludos