PhpDig.net

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

Reply
 
Thread Tools
Old 10-08-2003, 05:46 PM   #1
waytorussia
Green Mole
 
Join Date: Oct 2003
Posts: 3
Simple way of inserting a search form

Hi,

First of all, I want to say big "merci" to the creator(s) of this great program, it's really good!

I want to put just one search input line on the main page of my site. What is a simple way of doing this? I don't want to creat a special template, rather, I would just put in one line, that takes the search query and sends it to PHPDig, which then gives results out on my standard search (and search results) template. I hope I made it clear...

Thank you!!
waytorussia is offline   Reply With Quote
Old 10-08-2003, 05:57 PM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. Do you mean take the form at http://www.waytorussia.net/search/ and have the form on the main page? If so, just copy the HTML form from http://www.waytorussia.net/search/ and change 'index.php' to 'http://www.waytorussia.net/search/index.php' and it should work.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 10-08-2003, 06:22 PM   #3
waytorussia
Green Mole
 
Join Date: Oct 2003
Posts: 3
Ok, thank you Charter, but I didn't mean that. However, I found the answer on the main page of this site (in html source).

Here it is:

<!-- start -->
<form action='search/index.php' method='get'>
<input type='hidden' name='template_demo' value='simple.html'/>
<input type='hidden' name='result_page' value='index.php'/>
<input name='query_string' type='text' class='liwords' value='russian visa' size="15"/>
<input class='liwords' type='submit' name='search' value='Search'/>

</form>
<!-- end -->

That's it. You can also add various parameters.
waytorussia is offline   Reply With Quote
Old 10-08-2003, 06:23 PM   #4
waytorussia
Green Mole
 
Join Date: Oct 2003
Posts: 3
Oh, yeah, and of course you should changes the path (in form tag and in "template_demo" and in "result_page") to your local paths...

;-)
waytorussia 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
Search form Anton How-to Forum 0 11-15-2006 11:42 PM
search form 'remembering' previous search lukemack How-to Forum 0 12-16-2005 05:10 AM
Restricting search results by URL at the search form level innerfire How-to Forum 3 08-01-2005 09:36 AM
Inserting the results of search into web page Neo How-to Forum 3 10-09-2004 11:28 AM
Simple search petra_itl Mod Requests 3 12-30-2003 08:17 AM


All times are GMT -8. The time now is 02:23 AM.


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