PhpDig.net

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

Reply
 
Thread Tools
Old 04-25-2004, 02:26 AM   #1
steve45king
Green Mole
 
Join Date: Apr 2004
Posts: 3
input tags and the searchbox

Hi there!

I installed phpdig in a directory named "search", so all related phpdig files are stored there.
on the mainpage of my website there is a searchbox with the following form action and input tags:

form action="search/search.php" method='get'
input type='hidden' name='template_demo' value=""
input type='hidden' name='site' value=''
input type='hidden' name='path' value=''
input type='hidden' name='result_page' value=""

how can i use these field to use a template (lets say searchresults.htm) file located in the root?

Next problem is, that all links at the resultpage are "converted" to the "search"-directory:

eg:

http://mydomain.com/site.html

is changed to

http://mydomain.com/search/site.html

What is the workaround for this?

thanx!!!
steve45king is offline   Reply With Quote
Old 04-25-2004, 08:17 AM   #2
vinyl-junkie
Purple Mole
 
Join Date: Jan 2004
Posts: 694
I think what you're looking for is something like this.
vinyl-junkie is offline   Reply With Quote
Old 05-31-2004, 10:39 AM   #3
steve45king
Green Mole
 
Join Date: Apr 2004
Posts: 3
Links at the resultpage

Hi again!

Sorry, but i've still problems with the resultpage...
is the problem solved in the link you have postet???

if I put the search.php (and all other phpdig files) in a directory (eg: www.mydomain.com/search) all links at the resultpage (which is in the root directory) are converted to the "search"-directory:

the link

http://mydomain.com/site.html

is changed to

http://mydomain.com/search/site.html

need help!
steve45king is offline   Reply With Quote
Old 05-31-2004, 04:26 PM   #4
vinyl-junkie
Purple Mole
 
Join Date: Jan 2004
Posts: 694
Re: Links at the resultpage

Quote:
Originally posted by steve45king
Hi again!

Sorry, but i've still problems with the resultpage...
is the problem solved in the link you have postet???
Yes. You need to code your search box just like the example I gave in that other thread, making sure of course that you change "path/to" values to the appropriate names for your server. Also, be sure to change the template name to whatever template you are using on your server. Note that your template will be located in search/templates/your-template-name.html.

Quote:
if I put the search.php (and all other phpdig files) in a directory (eg: www.mydomain.com/search) all links at the resultpage (which is in the root directory) are converted to the "search"-directory:

the link

http://mydomain.com/site.html

is changed to

http://mydomain.com/search/site.html

need help!
Sorry, but you lost me. Are you saying that your search results all have the search folder in the link?

Is this a public internet site you're working with? If so, post the link to your search page and I'll see if I can figure out what the problem is.

Your phpdig files need to preserve the same directory structure they had when you unzipped them. As long as you keep that, you should be able to get this to work.
vinyl-junkie 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
IE Issues with exclude and include tags starpogi Troubleshooting 0 03-24-2006 06:15 AM
indexing alt tags for graphics megabyte How-to Forum 0 01-08-2006 06:48 PM
Custom XML like tags...? BulForce How-to Forum 1 07-18-2005 04:56 PM
Where can I find comments for XML-tags... $SMax$ How-to Forum 1 05-03-2005 10:21 AM
Indexing META-Tags Rolandks Bug Tracker 7 10-25-2003 06:46 AM


All times are GMT -8. The time now is 01:46 PM.


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