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:

[Announce] Newest Commerce Site based on WebCatalog (1997) Help formatting search results w/ table (1997) [GROUPS] followup (1997) Limit to Field Length in DB (1998) profiles (1999) Strange intermittent WebDNA problems Workaround (2008) More than one db with the same namn (was: WC2f3) (1997) Not really WebCat (1997) Couple of questions (1999) Extended [ConvertChars] (1997) Multi Actions (1999) WILDWEBCAT encrypt.tpl submission (1998) Happy New Year (2002) First postarg not taking in $Commands (1997) sorting dates (1999) OK to delete records while finding them? (2000) format crash! (1997) not interpreting Q (2001) New public beta available (1997) Secure Server (1997)