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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:08:33+00:00 2026-05-24T01:08:33+00:00

I have a search page, written in PHP, that gets its search terms from

  • 0

I have a search page, written in PHP, that gets its search terms from the URL, using $_GET (I’m not sure of the terminology).

I wanted to make the search term editable on that page. I added some checkboxes, one for each tag that could be chosen, and a submit button, but HTML forms send the data to the next page using $_POST, which isn’t part of the URL, and is generally annoying if you want to reload the page, and get asked every time what if you want to resend data and stuff.

I want the search terms to always be represented in the URL, so you could just copy the URL to a new window, and you would get the same results, like Google does, but with checkboxes being turned into the parameters, instead of the search box. I think I could do this by having a second page that gets sent the $_POST, which formulates a new URL, and redirects you, but that seems horrible. Is there any clean way to do this?

  • 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-24T01:08:33+00:00Added an answer on May 24, 2026 at 1:08 am

    Set your form element method to GET:

    <form method='get' ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a search functionality on my site that is accessible from every page.
I have a website that returns search results from Twitter, written in C# ASP.NET.
I have a search page that if there is results in the list it
I have a search page on my MVC site that contains a list of
On my C# asp.net webform I have a search page that has roughly 20
I currently have an advanced search page that searches a number of fields in
i have this MySQL statement from a search page, the user enters there postcode
I have a customer index page that displays customer lists. I have a search
i am trying to implement pretty url. Everything i have written in PHP and
I have a search page located at http://www.example.com/search_result.php , and I'm mod_rewriting it to

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.