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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:10:57+00:00 2026-05-30T17:10:57+00:00

I had a hard time phrasing my question’s title. Basically here’s the problem: I’ve

  • 0

I had a hard time phrasing my question’s title. Basically here’s the problem:

I’ve got this interface consisting of 5 visual rows that only differ by input and by name.

Each row has 2 select boxes/lists in it, I want the second select list to be filled with one of 7 different arrays (who are made by querying the database) depending on the selection the user made in the first selection box(the first box only influences the ORDER BY part of the query).

How do I make this happen immediately after the user makes a selection in the selection box?
Meaning without the user pressing any other submit button. I want most of the code processing to be server side but the output to be visible on client side immediately. And it would be ugly if the whole page refreshes each time the user changes a selection box, as he needs to select something in all 5.

Do I need to combine my php with some javascript to achieve this? And if so what kind of code am I looking for?

  • 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-30T17:10:58+00:00Added an answer on May 30, 2026 at 5:10 pm

    If you are using jquery this could be quite simple…

    /* pick up the first select box changing */
    $(".select_box_class").change(function() {
    
      /* show some loading indicator */
      show_loading_indicator();
    
      /* fire off a ajax call to the server which could return the html for the next select box or the data to build up the html in the client */
      $.post('/path/to/server.php',{selection:$(this).val()}, function(newSelect) {
          /* here you can update/create you next select box */
          $("#select_box2_placeholder").html(newSelect);
    
          turn_off_loading();
      });
    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I had a hard time coming up with a title for this question, but
Had a hard time coming up with a concise title for this. I'm sure
Sorry about the confusing title, I had a hard time describing the problem. I
Please forgive the awkward title. I had a hard time distilling my question into
I asked this question before, but had a hard time showing which edits I
This might be a simple question, but I've had a hard time pinning down
I had a hard time coming up with a title, so I hope this
I have this simple problem but I had a hard time of finding a
I'm having a hard time phrasing this question in such a way that doesn't
If this was previously talked about, I'm sorry, I had a hard time searching

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.