PDA

View Full Version : Inserting the results of search into web page


Neo
10-09-2004, 12:35 AM
Hi!!!!

Please, help...
I need to insert the results of search into my php page with my own design.
How can I do this?

Thanks.

vinyl-junkie
10-09-2004, 06:43 AM
Hi, Neo, and welcome to the forum. We're glad to have you here! :D

Have a look at this thread (http://www.phpdig.net/forum/showthread.php?t=839), in particular, post #8. That should be everything you need.

If you have any other questions or need help of any kind, please don't hesitate to ask. :)

Neo
10-09-2004, 09:00 AM
Thanks!

The search form inserted into my website under you idea:

<form action='/path/to/search.php' method='get'>
<input type='hidden' name='template_demo' value='/path/to/templates/template.php'/>
<input type='hidden' name='site' value='0'/>
<input type='hidden' name='path' value=''/>
<input type='hidden' name='result_page' value='/path/to/search.php'/>
<input type='text' class='phpdiginputtext' size='15' maxlength='50' name='query_string' value=''/>
<input type='submit' class='phpdiginputsubmit' name='search' value='Go...'/>
<input type='hidden' name='limite' class='phpdigselect' value='10'>
</form>


But the results of serching are on the standart page. I try to change the template.php inserting into xml <?php ... ?> but it does not change anything.

I need to modificate the results(!) of serching and see them on my own page with PHP code.

vinyl-junkie
10-09-2004, 10:28 AM
If you want to modify the template, have a look at this thread (http://www.phpdig.net/forum/showthread.php?t=348). :)