Element submit is undefined in the form
Hello,this is Mr -Bat n i am getting this error when i display forms every operations work n the error disappears after subit button is pressed then it goes why it happens.ca anyone help me please. inthe code i have written this:
<cfif IsDefined(form.submit)>
<cfquery name="New" datasource="CFM">
Insert into dbo.City_Master(City_Id,City_Description,State_description)
Values(#CityCode#,'#Cityname#','#State#')
</cfquery>
<cfquery name="Update" datasource="CFM">
Update dbo.City_Master set City_Description='#Cityname#' where State_description='#State#'
</cfquery>
<cfquery name="Search" datasource="CFM">
Select * from dbo.City_Master
</cfquery>
</cfif>
