Activity Stream
48,167 MEMBERS
6771 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1.     
    #1
    OH GOD!!!!!
    Website's:
    HotNewHipHop.com

    Default How to add a submit button to search?

    This is how my search bar looks:



    You can search for whatever you want but to submit the search you must click the "enter" button on your keyboard, I want to add a Submit button/image right next to the search bar so users can click it instead of having to press "Enter"

    I tried to add one but didnt see good results.


    Here is the code to call the search bar on the header:
    Code: 
    
    <div id="search">
                <form method="post" id="searchform" action="{$baseurl}/index.php" >
                    <input type="hidden" name="menu" value="search" />
                    <input id="s" class="rounded" type="text" name="query" />
                    
    
    
                </form>
            </div>
    here is the CSS:

    Code: 
    /* The Search */
    
    
        
    #search {
        background:url(images/search.png);
        width:283px;
        padding:5px 0px ;
        margin:10px 0px 0px 0px;
        height:50px;
        display:inline;
    }
    #search form {
        margin: -5px 0px 0px 300px;
        padding: 0;
    }
    
    #search fieldset {
        margin: 0;
        padding: 0;
        border: none;
    }
    
    #search p {
        margin: 0;
        font-size: 85%;
    }
    
    #s {
        width:285px;
        margin:10px 0px 0px 0px;
        padding: 5px 5px;
        height:16px;
        border:none;
        font: normal 100% "Tahoma", Arial, Helvetica, sans-serif;
        color:#333;
        border:1px solid #000;
        background:#F3F3F3;
        display:inline;
    }
    input#searchsubmit{
    
        padding: 3px 5px;
        display:inline;
        margin:0px 0px 0px 0px;
        height:26px;
        background:#133E68;
        color:#fff;
        border:none;
    }
    bxflow Reviewed by bxflow on . How to add a submit button to search? This is how my search bar looks: http://screensnapr.com/e/z5jC87.png You can search for whatever you want but to submit the search you must click the "enter" button on your keyboard, I want to add a Submit button/image right next to the search bar so users can click it instead of having to press "Enter" I tried to add one but didnt see good results. Here is the code to call the search bar on the header: Rating: 5

  2.   Sponsored Links

  3.     
    #2
    OH GOD!!!!!
    Website's:
    HotNewHipHop.com
    2 days later........


    anyone?

  4.     
    #3
    Member
    PHP Code: 
    <button type="submit" name="search" id="searchbutton">Search</button
    just above the
    </form>

    change id to the what ever you want and style it accordingly .
    Coding Horror Fan
    I don't read PM's frequently .

  5.     
    #4
    OH GOD!!!!!
    Website's:
    HotNewHipHop.com
    didnt work, it just removes the search bar entirely

  6.     
    #5
    Member
    Website's:
    PasteBot.appspot.com
    Just add this immediately before </form>
    Code: 
    <input type="submit" value="Submit" />
    Change the value to search or w/e

  7.     
    #6
    OH GOD!!!!!
    Website's:
    HotNewHipHop.com
    Quote Originally Posted by ajinkya9 View Post
    Just add this immediately before </form>
    Code: 
    <input type="submit" value="Submit" />
    Change the value to search or w/e
    Search bar just disappears when that is added

  8.     
    #7
    Member
    Code: 
    <div id="search">
                <form method="post" id="searchform" action="{$baseurl}/index.php" >
                    <input type="hidden" name="menu" value="search" />
                    <input id="s" class="rounded" type="text" name="query" />
    		<input type="submit" value="search" id="searchsubmit" />
    
                </form>
            </div>

    Just tested it to be sure and it works.
    This is the staff, you have been banned

  9.     
    #8
    OH GOD!!!!!
    Website's:
    HotNewHipHop.com
    Quote Originally Posted by snowmanrene View Post
    Code: 
    <div id="search">
                <form method="post" id="searchform" action="{$baseurl}/index.php" >
                    <input type="hidden" name="menu" value="search" />
                    <input id="s" class="rounded" type="text" name="query" />
            <input type="submit" value="search" id="searchsubmit" />
    
                </form>
            </div>
    Just tested it to be sure and it works.
    hm didn't work for me.. all it does is remove the search bar completely

  10.     
    #9
    Member
    Website's:
    ExpresShare.com
    what is the site.Is it a vbulletin skin or a custom made script.

  11.     
    #10
    OH GOD!!!!!
    Website's:
    HotNewHipHop.com
    is a custom script

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Search button problem.
    By bluedevil in forum vBulletin
    Replies: 2
    Last Post: 7th Sep 2011, 03:43 AM
  2. do i need to put phaze porn button for appz submit?
    By yakamozz in forum General Discussion
    Replies: 0
    Last Post: 31st Aug 2011, 05:27 PM
  3. How To Submit A Search Through The URL
    By Divvy in forum vBulletin
    Replies: 1
    Last Post: 13th Aug 2011, 10:26 AM
  4. [Buying] Search Banner/Button Designer
    By devio in forum Completed Transactions
    Replies: 2
    Last Post: 7th Jul 2010, 03:16 PM

Tags for this Thread

BE SOCIAL