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 = 49857
interpreted = N
texte = They use it to create a uniquely named variable. So if you are wanting toloop through variables for say a search and do not need things like cart youcould simply use the formvariables loop to get them:[formvariables name=--&exact=f][name] = [value][/formvariables]The above will list all variables being passed over that begins with -- andallows you access just those variables.----- Original Message -----From: Lucas Rockwell
To: WebDNA Talk Sent: Tuesday, April 29, 2003 11:07 AMSubject: Re: best way to test for the existence of a parameter in a url> Hi,>> No, neither of those work. Maybe WebDNA chokes on the -- part of the> parameter. But that's SmithMicro's syntax, not mine...>> Does anyone know why they would even use -- in a parameter name?>> -lucas>> On Tuesday, April 29, 2003, at 11:00 AM, WebCat @ Inkblot Media wrote:>> > We always use> >> > [if ([parameter] = [raw][parameter][/raw])]> >> > or> >> > [showif [parameter]=[raw][parameter][/raw]]> >> >> >> > ----- Original Message -----> > From: Howard Wolosky > > To: WebDNA Talk > > Sent: Tuesday, April 29, 2003 10:54 AM> > Subject: Re: best way to test for the existence of a parameter in a url> >> >> >> 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/> >>> >>> >>> >> Howard Wolosky> >> ------------------------> >> howard@wolosky.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/> >> >> > -------------------------------------------------------------> > 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/-------------------------------------------------------------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:
They use it to create a uniquely named variable. So if you are wanting toloop through variables for say a search and do not need things like cart youcould simply use the formvariables loop to get them:[formvariables name=--&exact=f][name] = [value][/formvariables]The above will list all variables being passed over that begins with -- andallows you access just those variables.----- Original Message -----From: Lucas Rockwell To: WebDNA Talk Sent: Tuesday, April 29, 2003 11:07 AMSubject: Re: best way to test for the existence of a parameter in a url> Hi,>> No, neither of those work. Maybe WebDNA chokes on the -- part of the> parameter. But that's SmithMicro's syntax, not mine...>> Does anyone know why they would even use -- in a parameter name?>> -lucas>> On Tuesday, April 29, 2003, at 11:00 AM, WebCat @ Inkblot Media wrote:>> > We always use> >> > [if ([parameter] = [raw][parameter][/raw])]> >> > or> >> > [showif [parameter]=[raw][parameter][/raw]]> >> >> >> > ----- Original Message -----> > From: Howard Wolosky > > To: WebDNA Talk > > Sent: Tuesday, April 29, 2003 10:54 AM> > Subject: Re: best way to test for the existence of a parameter in a url> >> >> >> 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/> >>> >>> >>> >> Howard Wolosky> >> ------------------------> >> howard@wolosky.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/> >> >> > -------------------------------------------------------------> > 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/-------------------------------------------------------------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/
WebCat @ Inkblot Media
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:
webcat-sys (1998)
Javascript and Search Results (1998)
waitforfile then redirect (2001)
How do you hide [math]stuff[/math] (1997)
WebCat Emailer & Liststar (1997)
database search help (2003)
problems with 2 tags (1997)
Has anyone built this already? (2003)
two unique banners on one page (1997)
Databases (2000)
Summing fields (1997)
Re:Signal Raised (1997)
Re:quit command on NT (1997)
Simple Store (2000)
[WebDNA] Need Help Installing on Linux (2014)
All questions are welcome on this list (1997)
founditems (1998)
PhotoMill -> PhotoMaster (1997)
Emailer errors (1997)
Number searching/formats (1998)