[thelist] CF Tip
David Shadovitz
david_shadovitz at xontech.com
Mon May 8 13:37:02 2000
<tip type="ColdFusion" author="David Shadovitz">
If your page contains a link back to itself or a form whose action page
is itself, do not hard-wire the page name in the link or form. Instead,
use the CGI variable SCRIPT _NAME.
Examples:
a href="#CGI.SCRIPT_NAME#?action=delete&itemID=5"
form name="myForm" action="#CGI.SCRIPT_NAME#" method="post"
Two benefits:
1. Makes it simpler to rename a page.
2. Doesn't waste others' time looking for the link / action page when
it's already right in front of them.
</tip>