Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7055353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:44:17+00:00 2026-05-28T03:44:17+00:00

I was looking at the cfhttp tag and it is possible to use it

  • 0

I was looking at the cfhttp tag and it is possible to use it to pass variables via clicked link?

<cfhttp method="Post" url="myurl"> 

I am trying to pass variables on a link click (for example, user IDs), but it seems a bit insecure to send via GET…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T03:44:18+00:00Added an answer on May 28, 2026 at 3:44 am

    My original answer completely missed the mark, but I can’t delete an accepted answer, so for the purposes of clarity, I’m changing this answer to agree with Billy’s comment above.

    CFHTTP is for making a server-side request to another website (as if you were visiting the site yourself), processing the results of that request, and storing them in a variable, which can then be used by you to perform additional tasks against (say, the parsing of a website’s homepage for specific values).

    What you are asking for appears to be a completely unrelated piece of functionality, in which:

    1. You have an HTML anchor (hyperlink) on your page.
    2. When a user clicks that link, you wish to pass 1 or more variables to a new page.

    The simplest way to accomplish this is to use a hidden form, and have the hyperlink submit then form. This matches Billy’s suggestion in the comments for your question:

    <form name="myForm" method="post" action="pageToSendVarsTo.cfm">
      <input type="hidden" name="username" value="theuser" />
      <input type="hidden" name="id" value="42" />
    </form>
    
    <a href="#" onClick="document.myForm.submit();">the link to click</a>
    

    Here, you have an HTML form with two hidden fields, username and id, which do not display on the page as they are hidden (but take note, can still be viewed if the user views the source of your page). Next, “the link to click” visibly appears as a hyperlink to the user. When clicked, JavaScript is used to simulate the firing of the form submission; it essentially behaves as if the form had a submit button and the user clicked that submit button. What that means for this example’s form is that both the username and id values are then HTTP POSTed to your ‘pageToSendVarsTo.cfm’ page, where they are available in the FORM scope to continue processing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Looking through the Django docs and trying to figure out the use of the
looking for windows software who can draw a Use Case diagram like yuml.me anyone
Looking for some help on my AJAX/jQuery implementation. I am trying to load some
Looking for web service that download a webpage (we'll provide the URL), normalize it
I am looking for a way to add a timeout to a CFHTTP request.
Looking for a build-time CSS combiner/minifier that respects relative URL references. That is, if
Looking at the following image: What tool should I use to get the coordinates
Looking at the extjs4 documentation for the itemselector, theres a method getValue() that returns
Looking for feedback on : http://code.google.com/p/google-perftools/wiki/GooglePerformanceTools
Looking for an example that: Launches an EXE Waits for the EXE to finish.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.