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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:19:56+00:00 2026-05-25T01:19:56+00:00

I do have a search form. <form method=get id=searchform action=<?php bloginfo(‘siteurl’);?>> <div class=search_bx1><input type=text

  • 0

I do have a search form.

       <form method="get" id="searchform" action="<?php bloginfo('siteurl');?>">
         <div class="search_bx1"><input type="text" class="field" name="s" id="s" placeholder="<?php esc_attr_e( 'Search', 'mclaren' ); ?>" /></div>
         <div class="search_btn1">
         <input type="image" class="submit" name="submit" id="searchsubmit" src="<?php bloginfo('template_directory'); ?>/images/search_btn.jpg" width="22" height="20" value="<?php esc_attr_e( 'Search', 'twentyeleven' ); ?>" />
        </div>
     </form>

I need to hide the image co-ordinates from the url.So i think i need to change the form method to post.But when i change the form action the redirection doesn’t occur to search.php rather it goes to index.php.How can i overcome this.Please help?

I follow the default search method followed by the theme ‘twentyeleven’

  • 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-25T01:19:57+00:00Added an answer on May 25, 2026 at 1:19 am

    You want to change the method attribute, not the action;

    <form method="POST" id="searchform" action="<?php bloginfo('siteurl');?>">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form, created with Zend_Form, with method = GET used for searching
I am developing a website using zend framework. i have a search form with
I have a search form in my web application that throws an Apache 400
Here is the code of a simple search form (thanks to jordinl) which I
I have a text box and a button, which is described with the HTML/CSS
I am trying to code the following layout. I have messed up the code
The Question Is there a way to alias the parameters generated by MVC, in
I'm implementing some naive searching in my application, and searches will take place on
Hi all , i'm testing out a service for internal ads on our website...
Is there any way how to call JQuery function from PageLoad C# file? Basically

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.