Re: Determining Method

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 31819
interpreted = N
texte = How about using [referrer]?Tag: Referrer Syntax: [referrer] Specifying [referrer] in your document will display the URL of the referring page that led you to this one. This is a handy way to give visitors a “back up” button. If this page was the result of a form method POST, however, the form information will not be included in the link.I haven't played with it at all, but assuming that [referrer] does just what the doc snip seems to say and also assuming that your referring page which uses GET has at least one name/value pair in the URL, something like this:[hideif [url][referrer][/url]^=][text]method=post[/text][/hideif] [showif [url][referrer][/url]^=][text]method=get[/text][/showif] the method = [method]or some other creative use of [referrer]...-JohnKenneth Grome wrote:> >> how' bout you send an argument in the url from the referring page like > >> filename?method=post or something? > > > >There has to be an easier way than that... > > > >I've written a WebCatalog program that I intend to attach to every > >.tmpl file on my > >server, and it needs to have the method available to it, in order > >for it to work. For > >your suggestion to work, every link and form on my server would need > >to have that > >element in it... > > Dennis, > > Assuming all your forms use method=post, it is extremely *EASY* to > use bbedit to replace every occurrence of with: > > > > > Then you're done, and you will have everything you claim to need. By > the way, what's so important about knowing how the formvariables are > passed anyways? > > ================================ > Kenneth Grome, WebDNA Consultant > 808-737-6499 http://webdna.net > ================================ > > ------------------------------------------------------------- > 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: Determining Method (John Butler 2000)
  2. Re: Determining Method (Kenneth Grome 2000)
  3. Re: Determining Method (Dennis J. Bonsall, Jr. 2000)
  4. Re: Determining Method (John Palmerlee 2000)
  5. Re: Determining Method (Dennis J. Bonsall, Jr. 2000)
  6. Re: Determining Method (Dennis J. Bonsall, Jr. 2000)
  7. Re: Determining Method (Kenneth Grome 2000)
  8. Re: Determining Method (Dennis J. Bonsall, Jr. 2000)
  9. Re: Determining Method (Kenneth Grome 2000)
  10. Re: Determining Method (Dennis J. Bonsall, Jr. 2000)
  11. Re: Determining Method (WebDNA Support 2000)
  12. Re: Determining Method (John Peacock 2000)
  13. Determining Method (Dennis J. Bonsall, Jr. 2000)
How about using [referrer]?Tag: Referrer Syntax: [referrer] Specifying [referrer] in your document will display the URL of the referring page that led you to this one. This is a handy way to give visitors a “back up” button. If this page was the result of a form method POST, however, the form information will not be included in the link.I haven't played with it at all, but assuming that [referrer] does just what the doc snip seems to say and also assuming that your referring page which uses GET has at least one name/value pair in the URL, something like this:[hideif [url][referrer][/url]^=][text]method=post[/text][/hideif] [showif [url][referrer][/url]^=][text]method=get[/text][/showif] the method = [method]or some other creative use of [referrer]...-JohnKenneth Grome wrote:> >> how' bout you send an argument in the url from the referring page like > >> filename?method=post or something? > > > >There has to be an easier way than that... > > > >I've written a WebCatalog program that I intend to attach to every > >.tmpl file on my > >server, and it needs to have the method available to it, in order > >for it to work. For > >your suggestion to work, every link and form on my server would need > >to have that > >element in it... > > Dennis, > > Assuming all your forms use method=post, it is extremely *EASY* to > use bbedit to replace every occurrence of with: > > > > > Then you're done, and you will have everything you claim to need. By > the way, what's so important about knowing how the formvariables are > passed anyways? > > ================================ > Kenneth Grome, WebDNA Consultant > 808-737-6499 http://webdna.net > ================================ > > ------------------------------------------------------------- > 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/ John Butler

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:

variables in [addlineitem] (1998) Setting up shop (1997) 2 easy questions re: [showif] and [sendmail] (1997) [SearchString] problem with [search] context (1997) Locking up with WebCatalog... (1997) Grep -- remove extra returns first (2003) Database Helper Update (1998) test7 (2000) Using WebCat for product info requests (1997) sendmail spaces (1997) japanese characters (1997) PageMaker/Quark to db (1999) forms and variables (1998) orders being printed (1998) Date in IF ELSE Comparison (2004) Multiple adding (1997) [WebDNA] Calendar Edit (2010) Search returns all, not 20 (1997) displaying [cart] contents with a pull-down & frames (1998) If Empty ? (1997)