How Do I Get this Code to Work

4 replies
  • WEB DESIGN
  • |
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>
#code #work
  • Profile picture of the author Mohsin Rasool
    Hi Steve,

    Was this template based on PHP files?
    There need to be some sort of search script/code to make this form work...
    Who designed this template? Oh I mean have you or anyone coded the back-end
    of this template to make search and other functions work?

    Regards,
    Mohsin
    PS. in the form action tag there needs to be name of your search.php code...
    like <form action="search.php" method="get">

    and then you have to have search.php , a php file with working code for search..
    {{ DiscussionBoard.errors[1946385].message }}
    • Profile picture of the author Steve Wells
      Originally Posted by Mohsin Rasool View Post

      Hi Steve,

      Was this template based on PHP files?
      There need to be some sort of search script/code to make this form work...
      Who designed this template? Oh I mean have you or anyone coded the back-end
      of this template to make search and other functions work?

      Regards,
      Mohsin
      PS. in the form action tag there needs to be name of your search.php code...
      like <form action="search.php" method="get">

      and then you have to have search.php , a php file with working code for search..
      I cant find a php file for search in my files, I do have about 7 Js files that go with it, maybe one of them runs the search box?

      I guess I can try trial and error.......
      Signature
      Need Custom Graphics Work? - Message Me For A Design Quote!
      {{ DiscussionBoard.errors[1946583].message }}
      • Profile picture of the author kittyd
        many free templates, as you have, come with just the design, but not the functionality that you want.

        you code contains "<form action="" method="get">", then by all means you got just that: a css template, not a php script to go with it. And the code is left with double quotes so that you may pick your own name for the php file you do yourself.

        so... find a search script...
        {{ DiscussionBoard.errors[1946692].message }}
  • Profile picture of the author woodsja
    First off you will need some sort of script to actually power the search. If you're running a Wordpress site there is search functionality already built in. The second thing is that your two input tags have the same name. The text field and the button need to have a different name. I would recommend converting your design to a Wordpress theme and let it power your site so you can leverage it's functionality. Otherwise you will need to purchase some sort of site search script or write one yourself. Good luck.
    {{ DiscussionBoard.errors[1946574].message }}

Trending Topics