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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:21:40+00:00 2026-05-16T01:21:40+00:00

I need to do a search based on a term entered into a text

  • 0

I need to do a search based on a term entered into a text box. Simply: user clicks something and results are returned.

This is fairly straight-forward, except I’m having a bit of difficulty actually implementing it. The problem is, I want to do this as RESTfully as possible, so I don’t want to create a button as follows:

<input id="searchButton" type="button" value="Search" />

because this will POST the data to the server, and I don’t want to do a POST because I’m not changing the state of anything. I’m retreiving data based on the value in the search box

I’d like to have it as a simple link, such as:

<a href="/Controller/Action">Search</a>

but it has to be styled as a button. If I was using the input, I could have CSS similar to:

.standardButtonStyle {
    background:url("../images/search_button.png") no-repeat scroll 0 0 transparent;
    border:0 none;
    color:White;
    cursor:pointer;
}

but I don’t think I can apply this to the anchor tag. Can somebody tell me the right 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-16T01:21:40+00:00Added an answer on May 16, 2026 at 1:21 am

    1) You can choose the method for your form. If you give the attribute “method=’GET'” in your form tag, the request will not be a post, but a get.

    2) You can use an input element with the type “button” if you want to create a button.

    3) You can put an image tag inside the anchor tag which has the search button png as its src.

    I think you got a little caught up in the complexity. It might be good to step back a little and focus at one issue at a time. I don’t think, that you really need to make it as complicated as you seem to do it.

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

Sidebar

Related Questions

I need something in between a full text search and an index search: I
I need to create a simple text file based search engine asap (using PHP)!
Problem I have timestamped data, which I need to search based on the timestamp
I need to develop a generic jQuery-based search plugin for the ASP.NET MVC application
I need to add full web search to my site. I need something like
I have a course table which I need to search based on keywords typed
I need to write a stored procedure that will search a table based on
I need to search a string and replace all occurrences of %FirstName% and %PolicyAmount%
I need to search a string in the string array. I dont want to
I need to search across multiple columns from two tables in my database using

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.