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

  • Home
  • SEARCH
  • 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 7934437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:38:47+00:00 2026-06-03T21:38:47+00:00

how can i send 2 id or more on this function by ajax function

  • 0

how can i send 2 id or more on this function by ajax

function advcust(id) {                      
    $.ajax ({
           url: "php_filter.php?cust=advcust",
           type: "GET",
           data: {CustStatus:id},
           success: function(data){
                    $("#return").html(data)
                    }
        })
}

here i can send only one id
but i need sent 2 or more id

and i have two input type to search two words
can i send 2 id on ajax

  • 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-03T21:38:49+00:00Added an answer on June 3, 2026 at 9:38 pm
    function advcust(ids) {
        $.ajax ({
            url: "php_filter.php?cust=advcust",
            type: "GET",
            data: {CustStatus: ids},
            success: function(data){
                $("#return").html(data);
            }
        });
    }
    
    var ids = [];
    ids.push(id1);
    ids.push(id2);
    advcust(ids);
    

    You can then access customer IDs in PHP as an array:

    <?php
    
    $customerIds = $_GET['CustStatus'];
    
    foreach ($customerIds as $customerId) {
        // do something...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jQuery .ajax call: $j.ajax({ type: POST, url: /Services/Cart.asmx/UpdateQuantity, data: data, contentType:
Say I have this <div id=x data-id='1' data-prop1='peace' data-prop2='out'>Text</div> in jQuery i can get
Is it possible to send Ajax requests to two or more Php scripts simultaneously?
How can you disable the send -button if there is one or more input
Using cURL I can send a GET request with a body. Example: curl -i
My question is: can we use dojo.xhrPost to post some Json data? More detail:
I have a dictionary variable in C# (ASP.NET). I want to send this data
Im using Ajax to send values to a PHP script which writes some value
In my controller i use the record.save function. In extjs 4.07 this would send
This php code is called through ajax from javascript and should return a numeric

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.