Re: Search as error page

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 42905
interpreted = N
texte = HiNearly,What I need to do is have a page which I can set with the server software as a default error page.If you goto www.mycompany.com/myfriendscompany which doesnt exist the page that is returned is the results of a search for myfriendscompanyThe code you posted gets the myfriendscompany as a value, how do I set the search on the default error page to process and return the results without having to press the search or find buttons?I know it can be done its just I spent so long on this I cant think straight (anymore)Thanks paul ----- Original Message ----- From: Brian Fries To: WebCatalog Talk Sent: Monday, August 26, 2002 5:50 PM Subject: Re: Search as error page > The easiest way to parse pieces from a url is with listwords: > > [listwords words=[url][referrer][/url]&delimiters=/] > [text]searchterm=[word][/text] > [/listwords] > > The variable searchterm now contains the last word from your > referrer - company1 in your example below. > > Is this what you're looking for? > > - brian > > At 5:27 PM 8/26/02, Paul Berman wrote: > >Hi > > > >I would like to set my default error page on the webserver as findme.htm so > >that it is processed by webcatalog as a search page. > > > >The findme.htm is a search for records from a company but using the > >[referer] field as the search field > > > >What i need is a search from the [referer] so that if I goto > > > >www.mywebsite.com/company1 the search searches the database for company1 > > > >What is happening at the moment is that it searches > >http://www.mywebsite.com/company1 so i need to strip off the > >http://www.mywebsite.com/ > > > >Any ideas? > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://search.smithmicro.com/ > >------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [.htm mappi]Re: Search as error page (Paul 2002)
  2. Re: Search as error page (Glenn Busbin 2002)
  3. [.htm mappi]Re: Search as error page (Donovan 2002)
  4. Re: Search as error page (Paul 2002)
  5. Re: Search as error page (Inkblot Media 2002)
  6. Re: Search as error page (Paul Berman 2002)
  7. Re: Search as error page (Pedro Rivera 2002)
  8. Re: Search as error page (Paul Berman 2002)
  9. Re: Search as error page (Pedro Rivera 2002)
  10. Re: Search as error page (Paul Berman 2002)
  11. Re: Search as error page (Brian Fries 2002)
  12. Re: Search as error page (Paul Berman 2002)
HiNearly,What I need to do is have a page which I can set with the server software as a default error page.If you goto www.mycompany.com/myfriendscompany which doesnt exist the page that is returned is the results of a search for myfriendscompanyThe code you posted gets the myfriendscompany as a value, how do I set the search on the default error page to process and return the results without having to press the search or find buttons?I know it can be done its just I spent so long on this I cant think straight (anymore)Thanks paul ----- Original Message ----- From: Brian Fries To: WebCatalog Talk Sent: Monday, August 26, 2002 5:50 PM Subject: Re: Search as error page > The easiest way to parse pieces from a url is with listwords: > > [listwords words=[url][referrer][/url]&delimiters=/] > [text]searchterm=[word][/text] > [/listwords] > > The variable searchterm now contains the last word from your > referrer - company1 in your example below. > > Is this what you're looking for? > > - brian > > At 5:27 PM 8/26/02, Paul Berman wrote: > >Hi > > > >I would like to set my default error page on the webserver as findme.htm so > >that it is processed by webcatalog as a search page. > > > >The findme.htm is a search for records from a company but using the > >[referer] field as the search field > > > >What i need is a search from the [referer] so that if I goto > > > >www.mywebsite.com/company1 the search searches the database for company1 > > > >What is happening at the moment is that it searches > >http://www.mywebsite.com/company1 so i need to strip off the > >http://www.mywebsite.com/ > > > >Any ideas? > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://search.smithmicro.com/ > >------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Paul Berman

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WebMerchant (1997) Prevent multiple appends with Reload Button (1997) Nested tags count question (1997) RE: Netscape v. IE (1997) Setting up WebCatalog with Retail Pro data (1996) EIMS & emailer conflicts? (1999) [WebDNA] Sendmail problem (2009) shipcost - fed up with the old way (1998) Help! WebCat2 bug (Ben's input) (1997) Am I going senile? (Price recalc based on quantity) (1997) [WebDNA] High-profile WebDNA sites? (2008) [OT] 'Email this story to a friend' (2003) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) Loop code problem (2000) Searching (2000) Can't find templaes (1997) [WebDNA] Milage tracker (2014) WCS Newbie question (1997) Re:2nd WebCatalog2 Feature Request (1996) using listfiles to build a database? more (2000)