| | |
Get referer URL
Please support our ColdFusion advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
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
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
What am I missing?
Thanks!
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
- URL-Based API Key Restriction: How does validation works? (RSS, Web Services and SOAP)
- Http request error when using AJAX. (JavaScript / DHTML / AJAX)
- Help with htaccess (IT Professionals' Lounge)
- php uploader script (PHP)
- CGI with C/C++ (C++)
- I'm Losing Patience (Search Engine Optimization)
- can't install Apache-many tries (Linux Servers and Apache)
- Newbie Needs Help (Perl)
- Error while processing : server ending byitself and database not connected... (ColdFusion)
- Apache Intermittently Refuses Port 80 (Linux Servers and Apache)
Other Threads in the ColdFusion Forum
- Previous Thread: newbie questions on generating Word document from ColdFusion
- Next Thread: Question and Answer Forum
| Thread Tools | Search this Thread |





