All,
This program was working, but I messed around with it and something happened so it does not work anymore. The problem is with the delete and insert fields, but I am posting everything to see if there may be a problem with the rest.
Any help will be greatly appreciated,
Daniel
<%
If Request.Form("Submit"="Submit" Then
'Get Form details
first=Request.Form("first"
last=Request.Form("last"
email=Request.Form("email"
pnew=Request.Form("new"
prenew=Request.Form("renew"
'Check that user supplied fields are completed
If first="" OR last="" OR email="" OR pnew="" or prenew="" THEN
response.redirect("passw3.asp"
ELSE
'update e-mail address
Dim con, sql_insert, data_source
If pnew <> prenew then
response.redirect("passw2.asp"
else
sql_delete = "delete from password where access_username = '"& last &"'"
sql_insert = "insert into password (access_firstname, access_username, email, access_password) values ('"& first &"', '"& last &"', '"& email &"', '"& prenew &"')"
Set con = Server.CreateObject("ADODB.Connection"
con.Open "password"
con.Execute sql_delete
con.Execute sql_insert
con.Close
Set con = Nothing
Response.redirect("done2.asp"
end if
END IF
End If
%>
Do you know the Chabad Lubavitch Sheliach in your area?
He is waiting for you!
This program was working, but I messed around with it and something happened so it does not work anymore. The problem is with the delete and insert fields, but I am posting everything to see if there may be a problem with the rest.
Any help will be greatly appreciated,
Daniel
<%
If Request.Form("Submit"="Submit" Then
'Get Form details
first=Request.Form("first"
last=Request.Form("last"
email=Request.Form("email"
pnew=Request.Form("new"
prenew=Request.Form("renew"
'Check that user supplied fields are completed
If first="" OR last="" OR email="" OR pnew="" or prenew="" THEN
response.redirect("passw3.asp"
ELSE
'update e-mail address
Dim con, sql_insert, data_source
If pnew <> prenew then
response.redirect("passw2.asp"
else
sql_delete = "delete from password where access_username = '"& last &"'"
sql_insert = "insert into password (access_firstname, access_username, email, access_password) values ('"& first &"', '"& last &"', '"& email &"', '"& prenew &"')"
Set con = Server.CreateObject("ADODB.Connection"
con.Open "password"
con.Execute sql_delete
con.Execute sql_insert
con.Close
Set con = Nothing
Response.redirect("done2.asp"
end if
END IF
End If
%>
Do you know the Chabad Lubavitch Sheliach in your area?
He is waiting for you!