Highlighted

CF CGI:http_REFERER Tag

New Here ,
Aug 26, 2016

Copy link to clipboard

Copied

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!

TOPICS
Builder

Views

821

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

CF CGI:http_REFERER Tag

New Here ,
Aug 26, 2016

Copy link to clipboard

Copied

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!

TOPICS
Builder

Views

822

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Aug 26, 2016 0
BKBK LATEST
Adobe Community Professional ,
Sep 05, 2016

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 05, 2016 0