Formvariables name matching

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 63567
interpreted = N
texte = How does formvariables match by name? In one case I have formvariables name=1_vendorname and in another I have name=_1_vendorname. I can't understand why the first one fails but the second works. Does the formvariables with an inexact match match in the middle of the name rather than at the start? --------------Sample code------------ This works as expected: [showif submit=[submit]] [formvariables name=sku_&exact=F] SKU=[text show=T]keyfieldsku=[value][/text]
[formvariables name=_[value]_&exact=F] [grep search=^_[keyfieldsku]_&replace=][NAME]:[/grep]=[value]
[/formvariables] 
[/formvariables] [/showif] Example output for above code: SKU=1 VENDORNAME:=This is the name of vendor1 VENDORADDRESS:=This is the address of vendor1 SKU=2 VENDORNAME:=This is the name of vendor2 VENDORADDRESS:=This is the address of vendor2 This does not work as expected (I have changed the form to remove the _ at the front of the var name.): [showif submit=[submit]] [formvariables name=sku_&exact=F] SKU=[text show=T]keyfieldsku=[value][/text]
[formvariables name=[value]_&exact=F] [grep search=^[keyfieldsku]_&replace=][NAME]:[/grep]=[value]
[/formvariables] 
[/formvariables] [/showif] Example output: SKU=1 VENDORNAME:=This is the name of vendor1 VENDORADDRESS:=This is the address of vendor1 21_VENDORNAME:=This is the name of vendor21 21_VENDORADDRESS:=This is the address of vendor21 31_VENDORNAME:=This is the name of vendor31 31_VENDORADDRESS:=This is the address of vendor31 ------------------------------------------------------------- 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: Formvariables name matching ( Marko Bernyk 2005)
  2. Re: Formvariables name matching ( Donovan Brooke 2005)
  3. Re: Formvariables name matching ( Stuart Tremain 2005)
  4. Re: Formvariables name matching ( William DeVaul 2005)
  5. Re: Formvariables name matching ( Stuart Tremain 2005)
  6. Formvariables name matching ( William DeVaul 2005)
How does formvariables match by name? In one case I have formvariables name=1_vendorname and in another I have name=_1_vendorname. I can't understand why the first one fails but the second works. Does the formvariables with an inexact match match in the middle of the name rather than at the start? --------------Sample code------------ This works as expected: [showif submit=[submit]] [formvariables name=sku_&exact=F] SKU=[text show=T]keyfieldsku=[value][/text]
[formvariables name=_[value]_&exact=F] [grep search=^_[keyfieldsku]_&replace=][NAME]:[/grep]=[value]
[/formvariables] 
[/formvariables] [/showif] Example output for above code: SKU=1 VENDORNAME:=This is the name of vendor1 VENDORADDRESS:=This is the address of vendor1 SKU=2 VENDORNAME:=This is the name of vendor2 VENDORADDRESS:=This is the address of vendor2 This does not work as expected (I have changed the form to remove the _ at the front of the var name.): [showif submit=[submit]] [formvariables name=sku_&exact=F] SKU=[text show=T]keyfieldsku=[value][/text]
[formvariables name=[value]_&exact=F] [grep search=^[keyfieldsku]_&replace=][NAME]:[/grep]=[value]
[/formvariables] 
[/formvariables] [/showif] Example output: SKU=1 VENDORNAME:=This is the name of vendor1 VENDORADDRESS:=This is the address of vendor1 21_VENDORNAME:=This is the name of vendor21 21_VENDORADDRESS:=This is the address of vendor21 31_VENDORNAME:=This is the name of vendor31 31_VENDORADDRESS:=This is the address of vendor31 ------------------------------------------------------------- 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/ William DeVaul

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:

PCS Customer submissions ? (1997) [OT] HTML Table Cell Problem (2003) Cookies-last one (1999) Newbie questions (1999) Smart caching problems with 2.1b3? (1997) WebCat2 - Getting to the browser's username/password data (1997) Malformed Pages (1999) Round up prices (2000) Quit revisited (1997) Re:PCS Customer submissions ? (1997) Webcat issue (2006) Where's Cart Created ? (1997) [WebDNA] 6.2 Monitor (2012) Ship Cost Calculated via Subtotal (1998) FREE Stuff .. (2003) unsubscribe (2000) Linebreaks and [writefile] (2003) Display [price] in banner ad (1998) Sorting error (1997) Thanks for tips, more quest (1997)