ThinkDing  

Go Back   ThinkDing > Member Forums > "How Do I..." Questions
Acceptance Mark
User Name
Password


Reply
 
Thread Tools Search this Thread
  #1  
Old 11-21-2006, 03:55 PM
bleucube bleucube is offline
Junior Member
 
Join Date: Nov 2006
Posts: 2
Default Use my own search

I would like to have a search box located on my main page.

In tdSearch.php I find:

<form class="bottom" name="search" method="get" action="<?=$_SERVER['PHP_SELF'].$query_link_screen?>">

What code would I need in my index.html / index.php in order for the search box to work?

Just:

<form class="bottom" name="search" method="get" action="http://mydomainname.com/search/tdsearch.php">

????

With the various hidden inputs?

Thank you!
Reply With Quote
  #2  
Old 11-22-2006, 02:46 AM
Winston Winston is offline
Administrator
 
Join Date: Jul 2005
Posts: 46
Default

If you want a search box on a different webpage, use the following where http://www.DOMAIN.COM/DIR/tdSearch.php is the full link to your search.php page:
Code:
<form method="get" action="http://www.DOMAIN.COM/DIR/tdSearch.php"> <table border="0" cellspacing="0" cellpadding="2"> <tr> <td><b>Search:</b></td> <td><input name="query" type="text"></td> <td><input type="submit" value="Go"></td> </tr> </table> </form>
Reply With Quote
  #3  
Old 11-22-2006, 04:00 PM
bleucube bleucube is offline
Junior Member
 
Join Date: Nov 2006
Posts: 2
Default

Thanks for the lead.... actually in order to get it working properly I had to use:

<form name="search" method="get" action="/search/tdSearch.php?query=">
<input name="limit" type="hidden" value="10">
<input name="order" type="hidden" value="high">

along with the rest...
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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



All times are GMT. The time now is 11:05 PM.


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