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:

redirect from the errorsMessages.db entry (1997) Download capabilities (1997) New index for docs (1997) OT: WebDNA and LINUX (2004) Encyption mail was Suggestions for Topics ... (1998) Re:trouble (1997) Delete file through browser (1999) New to WebCat, Help. (1998) Display [price] in banner ad (1998) popups, netscape vs explorer (1997) Math with Time (1997) WebCat2b15MacPlugIn - [authenticate] not [protect] (1997) Resolving variables into field names (1998) Bug Report, maybe (1997) [SHOWIF AND/OR] (1997) re: Large databases in WebCat (1997) can WC render sites out? (1997) Converting SQL Microtime to Date and Time (2003) Re:Dumb Question about Docs (1997) Loops N Variables (1998)