Re: Passing radio check box value to itself...

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 33906
interpreted = N
texte = On Thu, 29 Jun 2000 10:53:21 John Butler wrote: > Which is why it seems even more bizarre to me that Parker > you are saying that the radio > button (we usually don't call these checkboxes, which > act differently) cannot be > UNCHECKED after form submission (implying it is checked > after you submit the form).Yes. The form submits to itself. I check the radio button which of course sets my database field to Y (or whatever I want in the value.. should I make it T... will then a boolean be set? I'll look into that.. doesn't seem like it would matter in this case). Then the resulting page (itself again) shows the button checked because of the [showif] snippet.. good that's what I want, but I cannot then uncheck this button. So I need to tell the page somehow that if the radio button _is_ checked then I want to be able to uncheck it. I can use menu pulldown code very easily here as it's simply a yes/no situation, but would like to use this more compact solution if possible.Again the code I'm using (modified from storebuilder code.. see below):
Example I think I may be confusing checkbox and radio button functionality a bit here. Can someone reply with a functioning radio button that sets values in a database based on whether it's checked or not? Thanks... see below still...> Assuming your [showif] is all on one line, then the > syntax looks right, and so the > radio button should *not* be checked after form > submission since __EXAMPLE=Y, which > does *not* mean EXAMPLE=Y. [snip] > > [example] and [__example] are not the same thing.I'm a little confused. This is only my 5th or 6th webcat project so I'm just modifying the default StoreBuilder /admin/products.inc to fit the current store I'm working on. _Everywhere_ I see this __VARIABLE and [VARIABLE] accessing the same information. ex. etc. So I'm just mimicing the default code. It works... always has. I understand the logic of what you're saying of course with the naming conventions. So I'm sure you can see why I'm a little confused since this code is everywhere I look. ;) ------------------------------------------------------------- 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: Passing radio check box value to itself... (Parker 2000)
  2. Re: Passing radio check box value to itself... (John Butler 2000)
  3. Re: Passing radio check box value to itself... (Parker 2000)
  4. Re: Passing radio check box value to itself... (John Butler 2000)
  5. Re: Passing radio check box value to itself... (Aaron Lynch 2000)
  6. Passing radio check box value to itself... (Parker 2000)
On Thu, 29 Jun 2000 10:53:21 John Butler wrote: > Which is why it seems even more bizarre to me that Parker > you are saying that the radio > button (we usually don't call these checkboxes, which > act differently) cannot be > UNCHECKED after form submission (implying it is checked > after you submit the form).Yes. The form submits to itself. I check the radio button which of course sets my database field to Y (or whatever I want in the value.. should I make it T... will then a boolean be set? I'll look into that.. doesn't seem like it would matter in this case). Then the resulting page (itself again) shows the button checked because of the [showif] snippet.. good that's what I want, but I cannot then uncheck this button. So I need to tell the page somehow that if the radio button _is_ checked then I want to be able to uncheck it. I can use menu pulldown code very easily here as it's simply a yes/no situation, but would like to use this more compact solution if possible.Again the code I'm using (modified from storebuilder code.. see below): Example I think I may be confusing checkbox and radio button functionality a bit here. Can someone reply with a functioning radio button that sets values in a database based on whether it's checked or not? Thanks... see below still...> Assuming your [showif] is all on one line, then the > syntax looks right, and so the > radio button should *not* be checked after form > submission since __EXAMPLE=Y, which > does *not* mean EXAMPLE=Y. [snip] > > [example] and [__example] are not the same thing.I'm a little confused. This is only my 5th or 6th webcat project so I'm just modifying the default StoreBuilder /admin/products.inc to fit the current store I'm working on. _Everywhere_ I see this __VARIABLE and [VARIABLE] accessing the same information. ex. etc. So I'm just mimicing the default code. It works... always has. I understand the logic of what you're saying of course with the naming conventions. So I'm sure you can see why I'm a little confused since this code is everywhere I look. ;) ------------------------------------------------------------- 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/ Parker

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:

Running 2 two WebCatalog.acgi's (1996) [WebDNA] Better names ... (2012) MasterCounter Weirdness -Resolved! (1997) [WebDNA] Ignore - Test message from test account (2019) prefs file not being written to (2000) WebDNA deletes major DB data big time (2004) [BULK] [WebDNA] [BULK] db-temp files (2011) [ShowIf] if the varieable exists (1998) Math with Time (1997) I'm having trouble using [url][interpret][math] together in lookup (1997) Fun with Dates - finally resolved but.... (1997) Redirect (2003) Performance Tuning (2006) WebCat2 - [format thousands] (1997) Re:ListFields and [name] (1997) Out of the woodwork (2007) searchable list archive (1997) year 2000 + and webmerch, macauth? (1998) Re2: Calculating multiple shipping... (1997) problem serving foreign languages text (1997)