[thelist] CF Question

Thompson, Amy AThompson at randomhouse.com
Tue May 9 16:42:58 2000


If I include a DB primary key (returned from CFQUERY) within my cf form as
<input type="hidden" name="name" value="#primary_key_name#">, and then want
to access that value on my action page - how do I do so?  I keep trying to
use #form.name# and it is giving me tons of errors - any suggestions?  I can
provide more information if this is unclear.



-----Original Message-----
From: David Shadovitz [mailto:david_shadovitz@xontech.com]
Sent: Monday, May 08, 2000 1:42 PM
To: thelist@lists.evolt.org
Subject: [thelist] CF Tip


<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>


---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt !