PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 03-28-2005, 01:37 AM   #1
b-online
Green Mole
 
Join Date: Mar 2005
Posts: 2
Search Result Page Question

I am setting up a site search for a online venture.
http://www.bonnyvilleonline.com

I would like to have the search feild under the bookmark link at the top right hand corner of the homepage. When a user hits submit I would like it to a results page rather than adding the results to the current page like it is set at here.
http://www.bonnyvilleonline.com/search/search.php (do a search for "towntalk" to see how results are displayed.)

So basically step by step here is what I would like to happen

1. Homepage loads normal main page content along with search field.
2. When a person hits go it will go to a new page with the results rather than adding them to the main content.

Any advice or suggestions on how I can do this would be much appreciated.

Thanks
Wesley Long
BonnyvilleOnline
b-online is offline   Reply With Quote
Old 03-28-2005, 10:50 AM   #2
bloodjelly
Purple Mole
 
Join Date: Dec 2003
Posts: 106
Hi b-online -

To add a search box to the front page, you just have to add a form, like so:
Code:
<form method="get" action="search/search.php">
<input type="text" name="query_string" size="12" maxlength="50" /><br />
<input type="submit" name="search" value="Go" />
</form>
So, to make the form point to the search page, and take the user there when he clicks the submit button, just change the "action=" part to point to the search script.

Let me know if you have any questions.
bloodjelly is offline   Reply With Quote
Old 03-28-2005, 01:03 PM   #3
b-online
Green Mole
 
Join Date: Mar 2005
Posts: 2
That works perfectly! Thank you!!!

Hello BloodJelly, Thank you very much! That was a very easy fix!!!

Wes
b-online is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem using custom search result page passweb Troubleshooting 5 09-13-2004 11:43 PM
Automatic Webpage Thumbnails In Search Result Page JWSmythe Mod Submissions 6 08-24-2004 12:01 PM
search result destroys page layout... Chris2 Troubleshooting 1 02-11-2004 12:17 PM
empty search info on the result page 123av Troubleshooting 6 11-15-2003 05:09 PM
problems on the first result page with multiple search strings heiko Troubleshooting 3 10-15-2003 05:06 AM


All times are GMT -8. The time now is 08:55 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.