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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:45:19+00:00 2026-06-13T07:45:19+00:00

I have an html input that sends the query string through an ajax call

  • 0

I have an html input that sends the query string through an ajax call to my php server. The search string can be complex and allow for filters, my implementation question looking for feedback is should I handle the parsing of the fields/values on the client side and dynamically add post values or should I handle everything on the server side?

Example: From the search box you could enter things such as

'search string category:sports submitted:today'

Then I could either

javascript submits

(POST) q='search string category:sports submitted:today' 

server parses to

query='search string' 
category='sports' 
submitted'today' 

OR

javascript parses and submits

(POST) q='search string'
(POST) category='sports'
(POST) submitted='today' 

server handles post parameters

query='search string' 
category='sports' 
submitted='today' 
  • 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-13T07:45:19+00:00Added an answer on June 13, 2026 at 7:45 am

    Depends on how interactive you want your application to be.

    IF the client parses it while the user is typing, you could provide auto-fill features and validation.
    Else you have to wait for the user to be done and then receive feedback from the server.

    Technically it is not a big deal for the server-side to parse. But it just may not be the optimum application behavior.

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

Sidebar

Related Questions

I have a html page that sends a HTTP POST to a php page,
I have an HTML table that contains some 500 rows. I have an input
I have an HTML form that needs multiple submit buttons, like this: <input type=submit
I have a JS script that appends to the HTML page the pairs: input
i have the following problem with that code in my html tag: <div id=searchbar><input
In my HTML code, I have a form tag that contains two input boxes,
i have a form that have a field which hold query for search and
I have a number of search/text boxes that, using AJAX, search database tables and
I've got a search input which sends data from an input to a php
Hi I have a field that uses ajax to bring up product/item information <input

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.