Enjoy unlimited access to all forum features for FREE! Optional upgrade available for extra perks.

Search box

Discussion in 'Website Design' started by slowhost, Jan 11, 2009.

Thread Status:
Not open for further replies.
  1. slowhost United Kingdom

    slowhost Active Member

    Joined:
    Jul 2008
    Posts:
    184
    Likes Received:
    2
    hello all,

    i am using a template for a website which has a search box on it, i do not know how to make it work tho that is my problem can anyone help?

    this is the text

    <div class="sf_search">
    <form method="post" action="">
    <p><b>Search:</b> <input type="text" name="search" class="search" /> <input type="submit" value="Go" class="submit" />Find what your looking for! </p>
    </form>
    </div>

    Thanks for any help
     
  2. Domain Forum

    Acorn Domains Elite Member

    Joined:
    1999
    Messages:
    Many
    Likes Received:
    Lots
    IWA Meetup
     
  3. bensd United Kingdom

    bensd Well-Known Member

    Joined:
    Jan 2007
    Posts:
    5,103
    Likes Received:
    79
    The problem is this:
    You are not telling the form to do anything once the go/submit button is pressed.
     
  4. slowhost United Kingdom

    slowhost Active Member

    Joined:
    Jul 2008
    Posts:
    184
    Likes Received:
    2
    thats what i thought, what do i need put in there? to say search the site? thanks
     
  5. greatestdomains United Kingdom

    greatestdomains Active Member

    Joined:
    Jan 2006
    Posts:
    224
    Likes Received:
    1
    PHP:
    <form method="post" action="searchresults.php">
    You need to put the page you are going to call, I have put searchresults.php as a example
     
  6. slowhost United Kingdom

    slowhost Active Member

    Joined:
    Jul 2008
    Posts:
    184
    Likes Received:
    2
    thanks for that the site is in html so would i but searchresults.html? or is that totally wrong thanks again
     
  7. greatestdomains United Kingdom

    greatestdomains Active Member

    Joined:
    Jan 2006
    Posts:
    224
    Likes Received:
    1
    You may need to take a look at a couple of php tutorials :)

    If you going to use the value in your text box, then you will need to do it in PHP
     
  8. slowhost United Kingdom

    slowhost Active Member

    Joined:
    Jul 2008
    Posts:
    184
    Likes Received:
    2
    ha no wonder i couldnt figure it out with my limited skills, tried swapping it for an adsense google search bar looks alright but not perfect. i`ll have to get learning then cheers for the advice!!!
     
Thread Status:
Not open for further replies.