Go Back > PhpDig Forums > How-to Forum

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

I am setting up a site search for a online venture.

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. (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.

Wesley Long
b-online is offline   Reply With Quote
Old 03-28-2005, 09:50 AM   #2
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:
<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" />
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, 12:03 PM   #3
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!!!

b-online is offline   Reply With Quote

Thread Tools

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 10:43 PM
Automatic Webpage Thumbnails In Search Result Page JWSmythe Mod Submissions 6 08-24-2004 11:01 AM
search result destroys page layout... Chris2 Troubleshooting 1 02-11-2004 11:17 AM
empty search info on the result page 123av Troubleshooting 6 11-15-2003 04:09 PM
problems on the first result page with multiple search strings heiko Troubleshooting 3 10-15-2003 04:06 AM

All times are GMT -8. The time now is 07:19 AM.

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