Re: [append]
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 15888
interpreted = N
texte = >Well, I added blank= to the beginning of my append and it works fine. Is>this a bug? I'm running the newest non-beta webcatalog acgi, WebTen2.0No, this is not a bug, it's what's expected to happen. If you stick a 'throwaway' field in there as the first one, then all the subsequent fields will work fine as expected.Perhaps this will help you visualize what's going on here: in your mind, pretend there's an underscore '_' instead of a carriage return in your [append] context:[append db=xxx.db]__blank=&title=[title]&sku=[sku][/append]See how that first field is named __blank? That's what you're doing with those carriage returns -- it thinks they're part of the fieldname. But since you have no field named __blank in your database, WebCatalog just ignores that field and moves on to the next one, which is title. Since there *is* a field named title, it goes ahead and appends that information to the database.Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>Well, I added blank= to the beginning of my append and it works fine. Is>this a bug? I'm running the newest non-beta webcatalog acgi, WebTen2.0No, this is not a bug, it's what's expected to happen. If you stick a 'throwaway' field in there as the first one, then all the subsequent fields will work fine as expected.Perhaps this will help you visualize what's going on here: in your mind, pretend there's an underscore '_' instead of a carriage return in your
[append] context:[append db=xxx.db]__blank=&title=[title]&sku=[sku][/append]See how that first field is named __blank? That's what you're doing with those carriage returns -- it thinks they're part of the fieldname. But since you have no field named __blank in your database, WebCatalog just ignores that field and moves on to the next one, which is title. Since there *is* a field named title, it goes ahead and appends that information to the database.Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Grant Hulbert
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:
Strange Search Results (2004)
Separate SSL Server (1997)
Hidden or Forbidden? (1998)
WebCat 4.02b5 Mac OSXS [sendmail] bug (2000)
Text data with spaces in them... (1997)
ListFiles (1998)
OT: Javascript Random Number (2007)
Web Developer Product Awards (1997)
Showing unopened cart (1997)
showif and cart (1997)
b12 cannot limit records returned and more. (1997)
Using the new syntax/scoping methods (2000)
WebCat2: multiple currency support (1997)
send mail problem? (1997)
re: Large databases in WebCat (1997)
Seeking NT Mail Server Experiences (1998)
WebCat b13 CGI -shownext- (1997)
autosensing lanague selection (1997)
Trigger Problems (2001)
Setting up shop (1997)