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 1044967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:54:46+00:00 2026-05-16T15:54:46+00:00

On my site right now, I’m passing in data through a query string to

  • 0

On my site right now, I’m passing in data through a query string to a page. I’d like to change that so that the data is passed as a POST parameter.

My previous statement looked like this:

<cf_location url="mypage.cfm?id=123">

And I replaced it with:

<cfhttp method="post" url="mypage.cfm">
    <cfhttpparam name="theID" type="URL" value="123">
</cfhttp>

But cfhttp isn’t posting anything. In Firebug, nothing shows up in the NET tab, and nothing happens when that code is supposed to run.

Am I doing this incorrectly? Am I using the right type in the cfhttpparam? I’m very new to ColdFusion, so this is difficult for me.

  • 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-16T15:54:47+00:00Added an answer on May 16, 2026 at 3:54 pm

    Assuming you want the server, and not the client, to see the result, you can use CFHTTP. As Edward pointed out, the client will never see the interaction, as it is only between the server and (in your example) itself (although you need a fully qualified URL, including host name or IP).

    In your example, there are a few things wrong:

    • you need a fully qualified URL
    • you are using URL variables, not FORM (formField) variables

    This, with a bit of tweaking (specifically the URL) should work:

    <cfhttp method="post" url="http://localhost/mypage.cfm">
        <cfhttpparam name="theID" type="formField" value="123">
    </cfhttp>
    

    Remember, the response is coming back to the server, so the end user will never see mypage.cfm. The response will be returned to the server in the CFHTTP variable (you can change that using the “result” attribute).

    Unless you don’t have control of mypage.cfm, it might be easier to edit it to take URL variables, or to use structAppend() to copy the URL variables to the FORM scope.

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

Sidebar

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.