Re: Can [formvariables] do this?

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 35764
interpreted = N
texte = >How about: > >[replace db=orders.db&eqORDERNAMEdata=[ordername]][formvariables >name=var&exact=f][name]=[value][/formvariables][/replace]This code example has 1-3 problems:1- It does not [url] the values in the replace context, and in order to be 100% functional all the time it must.... and if the goal here is to replace more than one value from the form, then these two additional changes must be made:2- Put a & character in the formvariables context to separate the name=value pairs. 3- The name=var&exact=f should be left out entirelyIn fact, whenever your db fields and form fields have the same names, and when one or more values in the db fields must be replaced by values coming from the form fields, this generic code example will work every time, no exceptions, assuming reference the proper db and use the proper search parameters in the replace tag:[replace][formvariables][name]=[url][value][/url]&[/formvariables][/replace] ================================ 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/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Can [formvariables] do this? (Kenneth Grome 2000)
  2. Re: Can [formvariables] do this? (Joseph D'Andrea 2000)
  3. Can [formvariables] do this? (Will Starck 2000)
>How about: > >[replace db=orders.db&eqORDERNAMEdata=[ordername]][formvariables >name=var&exact=f][name]=[value][/formvariables][/replace]This code example has 1-3 problems:1- It does not [url] the values in the replace context, and in order to be 100% functional all the time it must.... and if the goal here is to replace more than one value from the form, then these two additional changes must be made:2- Put a & character in the formvariables context to separate the name=value pairs. 3- The name=var&exact=f should be left out entirelyIn fact, whenever your db fields and form fields have the same names, and when one or more values in the db fields must be replaced by values coming from the form fields, this generic code example will work every time, no exceptions, assuming reference the proper db and use the proper search parameters in the replace tag:[replace][formvariables][name]=[url][value][/url]&[/formvariables][/replace] ================================ 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/ Kenneth Grome

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:

image magick (2003) Emailer problems addition (1999) Multiple Pulldowns (1997) syntax question, not in online refernce (1997) Shopping cart problem (2003) WebCat2b13MacPlugIn - syntax to convert date (1997) DataBaseHelper Flawed (1997) [ShowNext] (1997) repost: I'd like the image this chunk of WEBDNA returns to behyperlinked to the (2000) PCS Emailer's role ? (1997) b18 problem on NT 4.0 (1997) Missing something simple?? (1998) boldwords (2001) Multiple download orders of the same product? (1997) Sub Totals (2000) Emailer (2002) HELP!! problems with e-mail from WebCAT (1998) First postarg not taking in $Commands (1997) 2.0Beta Command Ref (can't find this instruction) (1997) RE: protect tag not working (1998)