Skip to main content
August 26, 2016
Question

CF CGI:http_REFERER Tag

  • August 26, 2016
  • 1 reply
  • 1084 views

Need some serious helping learning the cgi tag.  Its for a contact form on a website.  Basically how to use the link to have a message display that the form was submitted.  Once submitted the info goes to an action.cfm page which works fine.  But need help using the tag.  Thanks!

This topic has been closed for replies.

1 reply

BKBK
Community Expert
Community Expert
September 5, 2016

You have asked the question in the CF Builder forum, it is a Coldfusion question. Here is an example that shows how to use the form, the action page and http_referer:

formpage.cfm

<form action="actionpage.cfm" method="post">

    <input name="txt" type="text">

    <input name="sbmt" type="submit" value="Send">

</form>

actionpage.cfm

<h2>This is the action page of the form</h2>

<cfoutput>

    Form.txt: #form.txt# <br>

    Referrer page: #CGI.HTTP_REFERER#

</cfoutput>

Put the 2 files in the same directory. Then open formpage.cfm in the browser. Fill in the form and press Send.