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 t2 x 103 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 Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
Associated Messages, from the most recent to the oldest:
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 t2 x 103 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 Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://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)