I've got an enter/edit screen created for people to enter new systems. Before the new system gets submitted I have the submit page query the database to make sure that a record doesn't already exist with that name. If it does, I set the url back to the enter/edit screen. Is there a way I can have the coldfusion popup a message stating that the user entered an entry that already exists?
Here is a snipped from the submit page:
[CODE=cfm]
<cfif isDefined("Form .Add")>
<cfquery name="validateN ame" datasource="Sec urity_Access" dbtype="ODBC">
select sysID from tblSystem
where name='#Form.nam e#'
</cfquery>
<cfif "validateName.R ecordCount" eq 1>
<cflocation URL="system.cfm ">
<cfelse>
............... ..
[/CODE]
Here is a snipped from the submit page:
[CODE=cfm]
<cfif isDefined("Form .Add")>
<cfquery name="validateN ame" datasource="Sec urity_Access" dbtype="ODBC">
select sysID from tblSystem
where name='#Form.nam e#'
</cfquery>
<cfif "validateName.R ecordCount" eq 1>
<cflocation URL="system.cfm ">
<cfelse>
............... ..
[/CODE]
Comment