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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:24:52+00:00 2026-05-26T13:24:52+00:00

I’m developing an add-on for Expression Engine that has a search facility. For search

  • 0

I’m developing an add-on for Expression Engine that has a search facility.

For search forms in the past, I’ve used a standard HTML <form> with its method attribute set to GET, and then server-side I’d parse this GET variables into some form of WHERE condition for a database query.

I’m trying to implement this logic in an Expression Engine add-on, but it seems Expression Engine does not like URLs with query strings, as when I submit the form the page breaks (it throws a 404 error).

Does Expression Engine support URLs with query strings? Or does this break the internal routing?

I should also mention that this add-on is to be implemented on many sites (the number unknown) and I’d like to stay away from making any changes to Expression Engine core files (i.e. PHP scripts) if possible, just in case this is suggested.

Thanks in advance.

EDIT: I thought I’d add some clarification as to what I’m trying to achieve.

In the past, I’ve used $_GET variables to drive search forms. So I may have a URL like:

http://example.com/search.php?size=large&color=red&page=1

As you can see, my query string contains name and value pairs as the parameters (including one for page) and these would created with a form whose action attribute is set to GET.

If there are $_GET parameters present, then search.php would parse this, formulate them into a SQL or XPATH query or whatever; and then return the matching records. The user could then page through these records by updating the page parameter that is present in the URL; the query would return just another portion of the result set as the other GET parameters would still be in the URL.

I want to achieve the same with an Expression Engine add-on. I want a form that takes the user-submitted criteria and then returns a record set that is pageable. I thought using a query string would be the best option given that it is RESTful and whatnot, but as aforementioned Expression Engine didn’t like a query string being present in the URL, treated it as a different URL and threw a 404 error.

How can I create an add-on that generates a form, the submitted user is then used to query a database table, and results returned to the user that can then also be page?

  • 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-26T13:24:53+00:00Added an answer on May 26, 2026 at 1:24 pm

    It seems URLs with query strings work if there’s more than one parameter in the query string, which seems absolutely backwards.

    So http://example.com/?foo=bar&baz=1 works, but http://example.com/?foo=bar does not.

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I've got a string that has curly quotes in it. I'd like to replace
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
I want to count how many characters a certain string has in PHP, but
I used javascript for loading a picture on my website depending on which small
Basically, what I'm trying to create is a page of div tags, each has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I have a French site that I want to parse, but am running into

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.