Any one have a simple search script for this...

4 replies
Below is the coding for my search box on my website at: Professional Graphic Design Solutions

I cant seem to get this to search, I think something is missing in the code, any ideas?

Here's the code........

<div class="outerhol">
<div class="search">
<form action="" method="get">
<input name="search" type="text" class="textfield">
<input name="search" type="button" value="search" class="button">
</form>
</div>
</div>

I have been told that I need a php file that runs a search? Anyone know where I can get one and exactly how to code this properly?

All help is genuinely appreciated........
#script #search #simple
  • Profile picture of the author jminkler
    So ... from your source code it doesn't apprear your using a CMS or WP ..

    Yes, you need a form action ... you also need to rename the button to something else, form name attributes need to be unique.

    Third, your on godaddy I presume without shell access. So, you would have to have your content in a database. Another option is to put in a google search bar.
    {{ DiscussionBoard.errors[1950314].message }}
    • Profile picture of the author Steve Wells
      Originally Posted by jminkler View Post

      So ... from your source code it doesn't apprear your using a CMS or WP ..

      Yes, you need a form action ... you also need to rename the button to something else, form name attributes need to be unique.

      Third, your on godaddy I presume without shell access. So, you would have to have your content in a database. Another option is to put in a google search bar.
      I only want it to be able to search from the page its on............no database...........
      Signature
      Need Custom Graphics Work? - Message Me For A Design Quote!
      {{ DiscussionBoard.errors[1950418].message }}
      • Profile picture of the author jminkler
        Originally Posted by EWGQDD View Post

        I only want it to be able to search from the page its on............no database...........
        Huh? The browser does this for the user.. CONTROL-F

        Pretty pointless feature, concentrate on other things to get your site up and don't worry about little features like this.
        {{ DiscussionBoard.errors[1950443].message }}
      • Profile picture of the author BenB969
        Banned
        [DELETED]
        {{ DiscussionBoard.errors[1952447].message }}
        • Profile picture of the author jminkler
          Originally Posted by BenB969 View Post

          So what's the problem with googl'es custom search bar?
          Cause if he only wants to search the single page, he'd have to setup a new search in google for every single page.
          {{ DiscussionBoard.errors[1952680].message }}

Trending Topics