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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:26:14+00:00 2026-06-05T00:26:14+00:00

I realized a pretty obvious problem with my search, but don’t know how to

  • 0

I realized a pretty obvious problem with my search, but don’t know how to fix it. Say someone searches for “Hello there” it would of course come up something like ?s=Hello+there in the URL.

However, how do I deal with people searching for something like “Hello & such”? The browser will read the second query as ?s=Hello+&+such which makes it stop the search variable at “Hello”. I have the same problem with the pound symbol. If someone searches for something with the pound symbol, it gets added on as though it’s a URL fragment, rather than part of the search query.

I can’t seem to find information for how to handle this, can anyone give me a hand?

  • 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-05T00:26:16+00:00Added an answer on June 5, 2026 at 12:26 am

    This is where encoding and escaping comes into play. For php see url encode.

    However due to the nature of your problem I think you are rather looking for js function:

    Encode URL in JavaScript

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

Sidebar

Related Questions

OK, I have my site going pretty well here: http://www.marioplanet.com But I've realized that
I'm pretty sure this is 100% safe, but I don't want to miss anything.
I realize this question is pretty basic, but I'm really stuck. I have a
I realized that ShowHeaderWhenEmpty only works in PostBacks. Is there any way to make
I realized that my application doesn't show up in searches on Google Play if
I realized I'm using these pseudo-classes pretty often, hence my question: In 2012, should
So this is a pretty general question, but I've been wondering about it for
UPDATE: I have realized the problem below is not possible to answer in its
I just realized it could be pretty handy (gives you better sense of context
This is probably pretty stupid, but I'm still green to LDAP. So I hope

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.