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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:32:12+00:00 2026-06-04T15:32:12+00:00

I have a site where each page is actually a parameter of the index.php

  • 0

I have a site where each page is actually a parameter of the index.php page.

So the search page is simply: www.mysite.com/?p=search

I created a GET form whose action is the page above (http://www.mysite.com/?p=search). However, when I submit the form, it is actually submitting the GET parameters to www.mysite.com/index.php instead of www.mysite.com/?p=search.

How do I get the form to actually submit to www.mysite.com/?p=search so that I end up with something like:

www.mysite.com/?p=search&param1=blah1&param2=blah2@&param3=blah3

instead of:

www.mysite.com/index.php?param1=blah1&param2=blah2@&param3=blah3

?

  • 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-04T15:32:13+00:00Added an answer on June 4, 2026 at 3:32 pm

    You can’t use a form to make a GET request to a URI with a query string in the action without destroying the existing query string. Use a hidden input instead.

    Add <input type="hidden" name="p" value="search"> to your form and set action="/"

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

Sidebar

Related Questions

I have a simple site where each page is actually a section . The
I have a site with multiple pages, and each page has a table that
I have a site with a bunch of categories. On each category archive page,
I have a multi-site Drupal-6 installation containing websites of different customers. On each site,
I have a site where people post stories, and I want part of each
I have a Magento store which needs different prices for each site, which restricts
I have a wp-network installed with users that can create pages in each site.
I have a wordpress site with 5k post and each post has average 25
I have the list with like 100,000 site link strings Each link is unique,
I have a large download site, an i have a code that updates each

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.