944,035 Members | Top Members by Rank

Ad:
  • ColdFusion Discussion Thread
  • Marked Solved
  • Views: 2160
  • ColdFusion RSS
Oct 16th, 2009
0

Get referer URL

Expand Post »
Hi all,
I have a form where my colleagues enter basic details about participants in a study. The 'action' attribute of the form takes the control to a 'validateForm.cfm' script where, as the name suggests, form validation is done. If there are any problems, I show the errors as well as the form itself, this time populating the fields with the data they entered previously.

To show the form after it has been submitted, I use the <cfinclude template /> tag in validateForm.cfm. The validateForm script can be called twice from my site:
1. When the user enters a NEW participant.
2. When the user edits an EXISTING participant data.

Since both times the validation is done by the 'validateForm.cfm' script, I cannot hard-code the template name in <cfinclude>. I tried using <cfinclude template=#CGI.HTTP_REFERER# /> too, but I get a 'The filename, directory name, or volume label syntax is incorrect' error.

What am I missing?

Thanks!
Similar Threads
Reputation Points: 10
Solved Threads: 2
Light Poster
cheapterp is offline Offline
33 posts
since Jun 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ColdFusion Forum Timeline: newbie questions on generating Word document from ColdFusion
Next Thread in ColdFusion Forum Timeline: SubCookies





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC