Okay, I have a million queries using update, insert,and delete, but this one is not working, and I don't know why. I've tried copying in a different form/query to see if i had some weird syntax error, but it doesn't work.. Here goes.
<cfif ParameterExists (Delete)>
<cfoutput>
<cfquery name="killmail" dbinfo>
DELETE from mail WHERE mid='#form.mid#'
</cfquery>
Goodbye
</cfoutput>
and the corresponding form..
<form action=" method="post">
<input type="Submit" value="Kill It" onMouseOver="window.status='Destroy this Letter'; return true">
<input type="hidden" value="mid" value="#mid#">
</form>
-
in the code for "read mail" the hidden form has the correct MID. It's just passing to the delete quesy for some reason.
Weird?
<cfif ParameterExists (Delete)>
<cfoutput>
<cfquery name="killmail" dbinfo>
DELETE from mail WHERE mid='#form.mid#'
</cfquery>
Goodbye
</cfoutput>
and the corresponding form..
<form action=" method="post">
<input type="Submit" value="Kill It" onMouseOver="window.status='Destroy this Letter'; return true">
<input type="hidden" value="mid" value="#mid#">
</form>
-
in the code for "read mail" the hidden form has the correct MID. It's just passing to the delete quesy for some reason.
Weird?