-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate3.cfm
28 lines (26 loc) · 929 Bytes
/
update3.cfm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<cfinclude template="translatit.cfm">
<cfquery name="getpass" datasource="#attributes.dsn#">
SELECT *
FROM login
WHERE username='#user#'
</cfquery>
<cfif (#pass# is #getpass.password#) AND (#user# is #getpass.username#)>
<CENTER>
<cfquery datasource="#attributes.dsn#" Name="update3">
DELETE FROM contacts
WHERE contactid = #contactid#
</cfquery>
<cfinsert datasource="#attributes.dsn#"
tablename="contacts"
formfields= "state, district, first, last, interest, city, zip, county, phone, email, added, current, gender, age">
<center>
<font color="red" size="6">the Contact Information has been updated</font><br>
<cfinclude template="update1.cfm">
</center>
<br><br><br>
<cfelse>
<font face="Arial" size="4">Sorry, you must enter a correct username and password!<br>
<br>
<a href="login.cfm">Back to Login</a></font></center>
<!-- Here you are ending your statement for username and password -->
</cfif>