View Full Version : inserting phpdig into a website
julius
12-30-2003, 07:55 AM
I am looking to include the simple search box from search.php on each page of my site. I found the documentation to be a little over my head. Is there a more in-depth tutorial available outside of the documentation?
Thanks,
Steve
Charter
12-30-2003, 08:11 AM
Hi. Perhaps this (http://www.phpdig.net/showthread.php?threadid=322) thread might help.
julius
12-30-2003, 08:18 AM
Thanks for replying so quickly--
Actually my question is simpler than that one (I think):
Phpdig is running/indexing fine, I just want to be able to search from my home page instead of having to link to the search.php page.
In other words:
Is it possible to put the search interface say, at the foot of my existing home page?
Thanks,
Steve
Charter
12-30-2003, 08:26 AM
Hi. Yes, just edit the CHANGE_ME so that it is http://www.yoursite.com/yourdirectory/search.php and place the HTML into your page.
<form action="CHANGE_ME/search.php" method="post">
<table>
<tr>
<td><input name="query_string" type="text" size="35"></td>
<td><input name="search" type="submit" value="Go"></td>
</tr>
</table>
</form>
julius
12-30-2003, 08:27 AM
gracias.
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.