C
Carlos Fernandes
Why when i awsner N in my if statment it also inserts data in my db ?
insere.asp
<%
....asp code...
%>
<SCRIPT LANGUAGE=VBScript>
nr=inputbox("S/N." )
if ucase(nr)="S" then
document.write "<%Set RS = Server.CreateObject ("ADODB.Recordset")%>"
document.write "<%RS.Open "reuniao", DB, 1,2 %>"
document.write "<%RS.AddNew%>"
document.write "<%RS ("solicitante") = request.form("solicitante")%>"
document.write "<%RS.Update%>" document.write "<%response.write
"Inserted"%>"
else
window.history.back()
end if
</SCRIPT>
<%
....asp code...
%>
Best regards,
Carlos
(e-mail address removed)
insere.asp
<%
....asp code...
%>
<SCRIPT LANGUAGE=VBScript>
nr=inputbox("S/N." )
if ucase(nr)="S" then
document.write "<%Set RS = Server.CreateObject ("ADODB.Recordset")%>"
document.write "<%RS.Open "reuniao", DB, 1,2 %>"
document.write "<%RS.AddNew%>"
document.write "<%RS ("solicitante") = request.form("solicitante")%>"
document.write "<%RS.Update%>" document.write "<%response.write
"Inserted"%>"
else
window.history.back()
end if
</SCRIPT>
<%
....asp code...
%>
Best regards,
Carlos
(e-mail address removed)