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:

WCf2 and nested tags (1997) Setting up shop (1997) [include ...] behavior (1997) Next X hits (1996) [DOS]/DOS query - A SOLUTION (2003) [removelineitem] not quite working inside [formvariables] loop (2001) Template cache problem with WC4 on Mac OS X (2000) Separate SSL Server (1997) ConverChars (1999) Triggers (2000) [WebDNA] Don't change [ipaddress] ... (2015) Seeking Better Display of results... (1997) [WebDNA] Calendar Edit (2010) Help! WebCat2 bug (1997) How reliable is WebDNA? (2004) is this how [break] works? (1998) Date problems (1997) off topic fetch vs PCS photomaster (1997) Using [Showif] tag. Mac (1997) Upgrading old WebCat Database Files (1997)