Snatch Posted April 21, 2008 Share Posted April 21, 2008 Hi, I am able to create a search box using PHP that references a mysql database. I am wondering though, how would I integrate it into a navigation bar? Like the one on apples site for example? Could anyone point me in the direction of a good tutorial please? Apologies if this hasn't been posted in the correct thread. Thanks in advance! Quote Link to comment https://forums.phpfreaks.com/topic/102183-search-box-advanced/ Share on other sites More sharing options...
DarkWater Posted April 21, 2008 Share Posted April 21, 2008 Ajax + PHP + MySQL would get you what you wanted. Read up on it. Quote Link to comment https://forums.phpfreaks.com/topic/102183-search-box-advanced/#findComment-523020 Share on other sites More sharing options...
Snatch Posted April 21, 2008 Author Share Posted April 21, 2008 I've tried seaching google, but mentioning ajax and search boxes just seems to bring up auto completion tutorials.... Quote Link to comment https://forums.phpfreaks.com/topic/102183-search-box-advanced/#findComment-523075 Share on other sites More sharing options...
DarkWater Posted April 21, 2008 Share Posted April 21, 2008 Modify the auto-completion a little bit. Look at Apple's. It's basically a spruced-up auto-completion box, right? On my site, the search users box is just like Apple's, actually. It provides links to a user's profile if they're in the search terms and it groups them by similarity, and it groups them by user-level. Play around with the code. Quote Link to comment https://forums.phpfreaks.com/topic/102183-search-box-advanced/#findComment-523079 Share on other sites More sharing options...
Snatch Posted April 21, 2008 Author Share Posted April 21, 2008 I'm not sure if we've got out wires crossed? I'm not looking to make an auto complete search box, just how to implement a normal search box into a navigation bar? All the auto completion tutorials i'm looking at don't explain this. Quote Link to comment https://forums.phpfreaks.com/topic/102183-search-box-advanced/#findComment-523102 Share on other sites More sharing options...
DarkWater Posted April 21, 2008 Share Posted April 21, 2008 Oh. I was looking at Apple's and noticed its auto-completion. You can just put the form in the nav-bar and have it sent to a PHP page. O_O Quote Link to comment https://forums.phpfreaks.com/topic/102183-search-box-advanced/#findComment-523106 Share on other sites More sharing options...
Snatch Posted April 21, 2008 Author Share Posted April 21, 2008 Ok thanks. I'm planning on designing the navbar in photoshop. Does anyone know any tutorials that will show me how to put the form in the navbar? Quote Link to comment https://forums.phpfreaks.com/topic/102183-search-box-advanced/#findComment-523120 Share on other sites More sharing options...
DarkWater Posted April 21, 2008 Share Posted April 21, 2008 Ok thanks. I'm planning on designing the navbar in photoshop. Does anyone know any tutorials that will show me how to put the form in the navbar? O_O <form action="search.php" method="post"><input type="text" size="10" maxlength="30"></form> Then they can hit Return to send the form in. Or you can put a submit button. Quote Link to comment https://forums.phpfreaks.com/topic/102183-search-box-advanced/#findComment-523128 Share on other sites More sharing options...
Snatch Posted April 21, 2008 Author Share Posted April 21, 2008 Ok I see what you mean - but that's just sticking it on top of the navbar? Is there a way of actually making it a part of the navbar? Quote Link to comment https://forums.phpfreaks.com/topic/102183-search-box-advanced/#findComment-523141 Share on other sites More sharing options...
DarkWater Posted April 21, 2008 Share Posted April 21, 2008 Ok I see what you mean - but that's just sticking it on top of the navbar? Is there a way of actually making it a part of the navbar? Hmm? That should be in the navbar if you code the CSS correctly and put the HTML in the right place. Quote Link to comment https://forums.phpfreaks.com/topic/102183-search-box-advanced/#findComment-523146 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.