If the id will always be passed on the URL, just put the value into a hidden
form field:
<input type="hidden" name="Ref_ID" value="#url.id#">
don't forget that the above must be inside a <cfoutput> tag.
There are probably dozens of ways to capture the statistics you're asking
about, but a very simple method would be to include a <cfquery> on the page
that does an INSERT into a statistics table. That way, any time the page is
served, the query will run and insert a record into your statistics table.
You could include #url.id# in this query to keep track of where the person
was coming from as well.
Bob
-----Original Message-----
From: Mark Lapole [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 10, 2000 10:01 AM
To: CF-Talk
Subject: URL capture/insert
This may be a fairly easy question, but bear with me. I'm using a contact
form trying to determine which specific URL the user came from. Example:
user goes to xxx.somedomain.com/form.cfm?id=12345 fills out some form fields
and submits, i'm just trying to insert the "12345" into a hidden SourceID
field. Also, using CF is there a way to calculate the number of times
specific URL is loaded/viewed (without submitting)? Will likely be using
WebTrends for something like this, but would be spectacular if i could get
from CF. Any suggestions would be greatly appreciated.
-M
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.