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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:28:37+00:00 2026-06-12T07:28:37+00:00

How to send GET and POST parameters with jQuery AJAX request simultaneously? I am

  • 0

How to send GET and POST parameters with jQuery AJAX request simultaneously?

I am trying to add do=ajax&id=" + ID to url, but as the result request sanded only to sss.php without query string (get part). thanks.

$.ajax({
    url: "sss.php?do=ajax&id=" + ID ,
    type: "post",
    data: "ddd=sss",
    // callback handler that will be called on success
    success: function(response, textStatus, jqXHR){
        // log a message to the console
        console.log("Hooray, it worked!");
    },
    // callback handler that will be called on error
    error: function(jqXHR, textStatus, errorThrown){
        // log the error to the console
        console.log(
            "The following error occured: "+
            textStatus, errorThrown
        );
    }
});
  • 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-06-12T07:28:38+00:00Added an answer on June 12, 2026 at 7:28 am

    I think you’re getting an observational error, or seeing a server-side rather than jQuery problem. When I do a post like this:

    $.ajax({
      url: "http://jsbin.com/eduzif/1?foo=bar",
      type: "post",
      data: "baz=doh",
      success: function() {
        display("Done, look at your console's network tab");
      }
    });
    

    …both the query string and POST data are sent to the server. It’s easy to check this if you use a modern browser like Chrome or Firefox and look in the Network tab of the console after triggering the post. In my case:

    Image showing post with both query string and form data

    (You can ignore that the server above replied with 403; JSBin doesn’t allow POST, but that doesn’t affect what we see in the request going to the server.)

    So the answer here is: Double-check how you’re getting the data server-side. The parameters in the URL (“GET” style parameters) are available as query string parameters (part of the URL); the “POST” style parameters are available as “form” data (e.g., the body of the response). Depending on the server-side technology you’re using, usually there are different ways to retrieve GET (query string) parameters vs. POST (form data / body) parameters.

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

Sidebar

Related Questions

I'm trying to send a post request to Parse: https://parse.com/docs/rest#objects-creating . Can't get it
Is it possible to send POST/GET parameters to in a controller using $this->_forward(/url/here);
I'm trying to use jQuery's .AJAX function to send a request to IPINFODB's API
How to send an http request with either post/get method using javascript as an
I'm trying to send a http get request in a php file to a
When I send a list of int's with jQuery like this: $.ajax('@Url.Action(Execute)', { type:
I'm trying to send some data via JQuery ajax to a grails controller Here's
I spent a lot of time, to add additional parameters to the Jquery-Autocomplete-Source. But
I am starting to use the jquery $.ajax() but I can't get back what
I need to send GET Request method with the below headers . I am

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.