Re: [REPLACE] problems

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 37699
interpreted = N
texte = >I have a .tpl, when a link is clicked in it, it calls >a .inc which is a form with all the values of a >particular database entry filled in. You are allowed >edit this and when you click the form button it is >supposed to replace the old database entry. When I >click the form button however nothing happens. I am >redirected to the .tpl which displays all records >currently in the database and nothing has changed. >Here is the code. > >When you click the form button the command value will >be alter.... > >[if [command]=alter] > [then] > [replace >db=news.db&eqHEADLINEdata=[__HEADLINE]]HEADLINE=[__HEADLINE]&DISPLAY=[__DISPLAY]&PARA1=[__PARA1]&PARA2=[__PARA2]&SEQ=[__SEQ] > [/replace] > [flushdatabases] > [redirect news.tpl] > [/then] > [else][/else] >[/if]You're not supposed to create your own variables with the same names as global tags in the webdna language. Try using a name other than command -- one that is not a reserved word in the webdna language.=========================================================== Kenneth Grome & Associates US-International eCommerce Business Development Specialists Office: +6332 262-8164 Mobile: +63919 749-0060 For direct-dialed calls from the USA, please use 011 prefix ===========================================================------------------------------------------------------------- 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: [REPLACE] problems (Kenneth Grome 2001)
  2. Re: [REPLACE] problems (Will Starck 2001)
  3. [REPLACE] problems (Laeg Ent. 2001)
>I have a .tpl, when a link is clicked in it, it calls >a .inc which is a form with all the values of a >particular database entry filled in. You are allowed >edit this and when you click the form button it is >supposed to replace the old database entry. When I >click the form button however nothing happens. I am >redirected to the .tpl which displays all records >currently in the database and nothing has changed. >Here is the code. > >When you click the form button the command value will >be alter.... > >[if [command]=alter] > [then] > [replace >db=news.db&eqHEADLINEdata=[__HEADLINE]]HEADLINE=[__HEADLINE]&DISPLAY=[__DISPLAY]&PARA1=[__PARA1]&PARA2=[__PARA2]&SEQ=[__SEQ] > [/replace] > [flushdatabases] > [redirect news.tpl] > [/then] > [else][/else] >[/if]You're not supposed to create your own variables with the same names as global tags in the webdna language. Try using a name other than command -- one that is not a reserved word in the webdna language.=========================================================== Kenneth Grome & Associates US-International eCommerce Business Development Specialists Office: +6332 262-8164 Mobile: +63919 749-0060 For direct-dialed calls from the USA, please use 011 prefix ===========================================================------------------------------------------------------------- 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:

includes and cart numbers (1997) using showpage and showcart commands (1996) Sorting by date (1997) Word Break (1999) Problems with [Applescript] (1997) displaying New products (Yikes! it's Fixed!) (1997) ErrorMessages.db suggestion (1997) Emails are Stuck (2003) Uh...can someone help me out with the b10? (1997) carriage returns in data (1997) Trying to append from within a single template file (2005) [WebDNA] XML Help (2009) ExpireDate Zero or Greater than Today (2006) Help formatting search results w/ table (1997) [WebDNA] fileinfo - need photo w & h written to a database (2016) Pithy questions on webcommerce & siteedit (1997) Price Not Appearing (2000) [lookup] [search] Issue (2005) [shownext max=?] armed (1997) [WebDNA] HTTP Streaming - POSSIBLE! (2010)