Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<CFPARAM name="Action" default="">
<CFPARAM name="form.delID" default="">
<CFQUERY name="GetMessages" datasource="#request.dsn#">
SELECT * FROM Messages
WHERE Recip=#userID#
</CFQUERY>
<CFOUTPUT query="GetMessages">
#Subject# --- #DateSent#<BR>
</CFOUTPUT>
<CFOUTPUT query="GetMessages">
<INPUT type="checkbox" name="delID" value="#MessageID#"> #Subject# --- #DateSent#<BR>
</CFOUTPUT>
<FORM action="MsgList.cfm" method="post">
<CFOUTPUT query="GetMessages">
<INPUT type="checkbox" name="delID" value="#MessageID#"> #Subject# --- #DateSent#<BR>
</CFOUTPUT>
<INPUT type="hidden" name="Action" value="Delete Checked Messages">
<INPUT type="submit" value="Delete checked messages"> (See my FAQ: faq232-2086 for why I do this)
</FORM>
<!---If Action is our button's value, thus the action button has been clicked.. And if delID is not null--->
<CFIF Action is Delete Checked Messages" AND len(delID) gt 0>
<!--- The Query --->
<CFQUERY datasource="#request.dsn#">
DELETE * FROM Messages
WHERE MessageID in (#delID#)
AND Recip=#UserID#
<!--- The above ensures that Users don't try to delete each others messages --->
</CFQUERY>
</CFIF>
<CFPARAM name="Action" default="">
<CFPARAM name="form.delID" default="">