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 search form on my site <form class=clearfix action=search.php method=get> <h1>Search the
I have a simple search form <form id=search name=search method=GET action=search.php enctype=application/x-www-form-urlencoded> But this
I have the following form from http://regain.sourceforge.net/ : <form name=search action=search.jsp method=get> <p class=searchinput>
So, I have this HTML form: <form id=search_form class=form_wrapp accept-charset=utf-8 method=get action=http://testing.com/results> <input class=inputbox
I have this view function: def search(request): if request.method == 'GET': form = SearchForm(request.GET)
I have created a search form with get method. But when the url looks
(Using MySQL and PHP) I have a search form that will allow my users
I have a simple search form with a box and a button. <form action
I've created a search form for a script in php. Basicaly this form have
My form.html <form id=search-form method=post action=. name=f> <p><label for=id_customer_type>Customer type</label> <select name=customer_type id=id_customer_type> <option

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.