Wondering if anyone knows the best way to add a link on an
action page that will take a user back to a completed query page.
What I have is a query results page that allows to edit or delete,
after the action of either edit or deleting I need to bring the
user back to the first query page so they can edit or delete more
if they wish.
This sounds easy but I can't figure out how to do it. I am
assuming I will need to pass the completed query information
through to my action page so I can link back to it? Below is my
Query Page (finddate.cfm):
<cfquery name="qstudents" datasource="ardexseminars">
SELECT * FROM registrants WHERE seminardate = '#seminardate#'
ORDER BY seminardate, seminar
<form action="groupdelete.cfm" method="post">
<cftable query = "qstudents"
startRow = "1" colheaders colSpacing = "6" HTMLTable
<!--- each cfcol tag sets width of a column in table, and
information and text/CFML with which to fill cell --->
<cfcol header = "<c>Admin</c>"
align = "Left"
width = 25
text = "<a href=editstudent.cfm?id=#id#>Edit</a>
| <input type=checkbox name=remove value=#id#>Delete | <a
<A HREF="finddate.cfm">Return to the previous
If you need to send back a couple of variables, add them to
your URL. For example, you mention returning to a "completed query
page." You might want to send back
finddate.cfm?seminardate=#seminardate# and requery the
thanks for the advice. I tried setting the url to
finddate.cfm?seminardate=#seminardate# and then passing to the
final action page using <input type="hidden" name="url"
value="finddate.cfm?seminardate=#seminardate# "> but it gave me
an error about not being able to pass strings?