Re: best way to test for the existence of a parameter in a url

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 49860
interpreted = N
texte = Brian,Thank you. This works!-lucasOn Tuesday, April 29, 2003, at 11:05 AM, Brian Fries wrote:> Try this: > > [formvariables name=[url]--eqskudatarq[/url]][if > [url][value][/url]!][then] > ... --eqskudatarq exists and has a non-blank value ... > [/then][/if][/formvariables] > > > Note that just saying [formvariables]...[/formvariables] performs a > loop through all of the form variables passed in. Within the > [formvariables] loop, [name] is the name of the formvariable for the > current iteration of the loop, and [value] is its value, while [index] > tells you which iteration you are on. > > I prefer the formvariables method over the other methods people have > suggested, because it distinguishes between formvariables passed in to > the page and other variables (text, math, db fields) that may have > been created with the same name. > > - brian > > > On Tuesday, April 29, 2003, at 10:59 AM, Lucas Rockwell wrote: > >> Howard, >> >> Thanks. This does not seem to work for me. Maybe it is the problem >> with trying to test for --eqskudatarq... Also, I want to test for the >> existence of (not --eqskudatarq) and (--woSECTIONSdatarq), but that >> is not working either. >> >> WebDNA does know about --eqskudatarq because when I list out the >> formvariables, it is in the list... >> >> -lucas >> >> On Tuesday, April 29, 2003, at 10:54 AM, Howard Wolosky wrote: >> >>> I'm very partial to this method: >>> >>> [if [URL][_user][/URL]=%5B_user%5D]] >>> [Then] >>> ... >>> >>> At 10:38 AM 4/29/2003, you wrote: >>>> Hi all, >>>> >>>> I am trying to test for the existence of a parameter in the URL. >>>> What is the best way to do this? >>>> >>>> I find it odd that on the same page this works: >>>> >>>> [If [formvariables][id1][/formvariables]] >>>> [Then] >>>> ... >>>> >>>> But this does not: >>>> >>>> [If [formvariables][--eqskudatarq][/formvariables]] >>>> [Then] >>>> ... >>>> >>>> Basically, I don't care what the value of the parameter is, I just >>>> want to know if it is there. Oh, and an added benefit would be to >>>> check if it has some value other than blank ([--eqskudatarq]=). >>>> >>>> Thanks. >>>> >>>> -lucas > > > ------------------------------------------------------------- > 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://webdna.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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: best way to test for the existence of a parameter in a url (Lucas Rockwell 2003)
  2. Re: best way to test for the existence of a parameter in a url (Donovan 2003)
  3. Re: best way to test for the existence of a parameter in a url (Lucas Rockwell 2003)
  4. Re: best way to test for the existence of a parameter in a url (Donovan 2003)
  5. Re: best way to test for the existence of a parameter in a url (Jay Van Vark 2003)
  6. Re: best way to test for the existence of a parameter in a url (WebCat @ Inkblot Media 2003)
  7. Re: best way to test for the existence of a parameter in a url (Lucas Rockwell 2003)
  8. Re: best way to test for the existence of a parameter in a url (Brian Fries 2003)
  9. Re: best way to test for the existence of a parameter in a url (WebCat @ Inkblot Media 2003)
  10. Re: best way to test for the existence of a parameter in a url (Lucas Rockwell 2003)
  11. Re: best way to test for the existence of a parameter in a url (WebCat @ Inkblot Media 2003)
  12. Re: best way to test for the existence of a parameter in a url (Howard Wolosky 2003)
  13. best way to test for the existence of a parameter in a url (Lucas Rockwell 2003)
Brian,Thank you. This works!-lucasOn Tuesday, April 29, 2003, at 11:05 AM, Brian Fries wrote:> Try this: > > [formvariables name=[url]--eqskudatarq[/url]][if > [url][value][/url]!][then] > ... --eqskudatarq exists and has a non-blank value ... > [/then][/if][/formvariables] > > > Note that just saying [formvariables]...[/formvariables] performs a > loop through all of the form variables passed in. Within the > [formvariables] loop, [name] is the name of the formvariable for the > current iteration of the loop, and [value] is its value, while [index] > tells you which iteration you are on. > > I prefer the formvariables method over the other methods people have > suggested, because it distinguishes between formvariables passed in to > the page and other variables (text, math, db fields) that may have > been created with the same name. > > - brian > > > On Tuesday, April 29, 2003, at 10:59 AM, Lucas Rockwell wrote: > >> Howard, >> >> Thanks. This does not seem to work for me. Maybe it is the problem >> with trying to test for --eqskudatarq... Also, I want to test for the >> existence of (not --eqskudatarq) and (--woSECTIONSdatarq), but that >> is not working either. >> >> WebDNA does know about --eqskudatarq because when I list out the >> formvariables, it is in the list... >> >> -lucas >> >> On Tuesday, April 29, 2003, at 10:54 AM, Howard Wolosky wrote: >> >>> I'm very partial to this method: >>> >>> [if [url][_user][/URL]=%5B_user%5D]] >>> [Then] >>> ... >>> >>> At 10:38 AM 4/29/2003, you wrote: >>>> Hi all, >>>> >>>> I am trying to test for the existence of a parameter in the URL. >>>> What is the best way to do this? >>>> >>>> I find it odd that on the same page this works: >>>> >>>> [If [formvariables][id1][/formvariables]] >>>> [Then] >>>> ... >>>> >>>> But this does not: >>>> >>>> [If [formvariables][--eqskudatarq][/formvariables]] >>>> [Then] >>>> ... >>>> >>>> Basically, I don't care what the value of the parameter is, I just >>>> want to know if it is there. Oh, and an added benefit would be to >>>> check if it has some value other than blank ([--eqskudatarq]=). >>>> >>>> Thanks. >>>> >>>> -lucas > > > ------------------------------------------------------------- > 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://webdna.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://webdna.smithmicro.com/ Lucas Rockwell

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:

RE: Problems with shopping cart (1997) REPLACE & MAX/STARTAT parameters doesn't work? (2000) WebCat2b13MacPlugIn - syntax to convert date (1997) Getting total number of items ordered (1997) Date problems-more (1997) why .HTML pages no processing? - More Info (2000) ETA on Dreamweaver extensions? (2000) Problems with totals (1997) Setting up WebCatalog with Retail Pro data (1996) [WebDNA] Mass email using WebDNA (2008) Help!!!! (1997) Storebuilder Quickie (2003) RE: 2nd WebCatalog2 Feature Request (1996) Modifying databases manually (was Banner DNA) (1997) [accountNum] and [math] (1997) system crashes, event log (1997) list cookies and list http headers (1997) Spreadsheet Interface. (1998) 06/06/2000 bug warning ... (2000) table max? (2001)