Surprise x and y post args

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 18669
interpreted = N
texte = Here's something interesting I just discovered, maybe because I'm using Internet Explorer, or maybe because I never tried this with Netscape -- but either way, it could have an effect on your variable values if you ever use fields named x or y in your forms ...Here's my search form, it only has one field named value. Instead of a regular Submit button I'm using a .gif file ...
Here's what happens:When I enter a value (such as t in this example) into the value field and hit the Return key, no x or y values are posted:1 value tBut when I click that .gif button to submit the form, x and y values get posted to my results template, and those values show up in my [formvariables] context:1 value t 2 x 10 3 y 6I never used a .gif file as a form button until now, so you may already know this if you've done it before, but it DOES suggest that you had better *not* use fields named x or y at the same time you're using an image file as your form's Submit button -- or else those x and y values might be used by WebCatalog *instead* of the x and y values you *thought* would be entered via your form fields!Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Associated Messages, from the most recent to the oldest:

    
  1. Re: Surprise x and y post args (Rob Marquardt 1998)
  2. Re: Surprise x and y post args (PCS Technical Support 1998)
  3. Re: Surprise x and y post args (Kenneth Grome 1998)
  4. Re: Surprise x and y post args (Dave MacLeay 1998)
  5. Surprise x and y post args (Kenneth Grome 1998)
Here's something interesting I just discovered, maybe because I'm using Internet Explorer, or maybe because I never tried this with Netscape -- but either way, it could have an effect on your variable values if you ever use fields named x or y in your forms ...Here's my search form, it only has one field named value. Instead of a regular Submit button I'm using a .gif file ...
Here's what happens:When I enter a value (such as t in this example) into the value field and hit the Return key, no x or y values are posted:1 value tBut when I click that .gif button to submit the form, x and y values get posted to my results template, and those values show up in my [formvariables] context:1 value t 2 x 10 3 y 6I never used a .gif file as a form button until now, so you may already know this if you've done it before, but it DOES suggest that you had better *not* use fields named x or y at the same time you're using an image file as your form's Submit button -- or else those x and y values might be used by WebCatalog *instead* of the x and y values you *thought* would be entered via your form fields!Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net 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:

Checking two required fields (1998) WebCat2 Append problem (B14Macacgi) (1997) encripted storage (1998) [OT] Satellite (2005) WebCat2 Append problem (B14Macacgi) (1997) Multiple Users.db Possible? (1997) multiple price line in formula.db (2004) Catalogs and W* (1996) OT: Unknown Webstar Error ruining presentation?! (2001) Did you hear about this? (1997) Multiple security dbs (1997) How do I get Google to crawl a WebCat site? (2003) [WebDNA] Successful, working WebDNA7/CentOS install? (2013) PSC recommends what date format yr 2000??? (1997) WebCat2.0 [format thousands .0f] no go (1997) your mail (2000) Use of & in text areas follow-up (1998) Pull Down Search (2000) Webcatalog Conference? (1998) [OT] Browser's search via javascript? (2003)