Re: form validator issue
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 61508
interpreted = N
texte = duh...I figured a good nights sleep would help.I initially messed up by deleting a small line thatwas always in my other snippets, causing all this tofail miserably over and over again. Slowly re-assembled this form and all is well.No empty fields can pass, although I just realized"just spaces" do. Photo uploads are fine if one isindicated.How would I check for just "spaces" in a field.... oram i being too paranoid. I only require 2 fields asmandatory, the "Title" and the "Text".Thanks to all for trying to help on this.--- Terry Wilson
wrote:> >I put this on the input form page:> >> >[FormVariables]> >[index],[name],[value]
> >[/FormVariables]> >> >> >this is one of the lines I get> >on the form validate page:> >> >8,Content-Disposition: form-data; name="BlogText",> >> >> >still appears blank to me> >????> > Your formvariable test below should have shown you> the problem > inherent in using enctype="multipart/form-data; that> is, the name > themselves are transformed into a more complex> string. In your > validator, you're expecting to find a variable named> "Blogtext" but > now it's actually called "Content-Disposition:> form-data; > name="BlogText"", so your validator never even sees> [blogtext] to > validate for it. It sees [Content-Disposition:> form-data; > name="BlogText"] though.> > With my uploads I use formvariables and pull out the> names using > middle, and use [text] to rewrite the variables with> the original > names I intended. Then the following validation code> you expect will > work. I think the sample you downloaded probably has> something like > this in it. It differentiates between the one> variable holding the > file itself, and the others by looking for the> presence of "filename" > in the string. Sounds complicated and looks ugly,> but once you wrap > your head around it, it makes sense.> > Terry> >-------------------------------------------------------------> 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://webdna.smithmicro.com/> __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site!http://smallbusiness.yahoo.com/resources/ -------------------------------------------------------------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://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
duh...I figured a good nights sleep would help.I initially messed up by deleting a small line thatwas always in my other snippets, causing all this tofail miserably over and over again. Slowly re-assembled this form and all is well.No empty fields can pass, although I just realized"just spaces" do. Photo uploads are fine if one isindicated.How would I check for just "spaces" in a field.... oram i being too paranoid. I only require 2 fields asmandatory, the "Title" and the "Text".Thanks to all for trying to help on this.--- Terry Wilson wrote:> >I put this on the input form page:> >> >[formvariables]> >[index],[name],[value]
> >[/FormVariables]> >> >> >this is one of the lines I get> >on the form validate page:> >> >8,Content-Disposition: form-data; name="BlogText",> >> >> >still appears blank to me> >????> > Your formvariable test below should have shown you> the problem > inherent in using enctype="multipart/form-data; that> is, the name > themselves are transformed into a more complex> string. In your > validator, you're expecting to find a variable named> "Blogtext" but > now it's actually called "Content-Disposition:> form-data; > name="BlogText"", so your validator never even sees> [blogtext] to > validate for it. It sees [Content-Disposition:> form-data; > name="BlogText"] though.> > With my uploads I use formvariables and pull out the> names using > middle, and use [text] to rewrite the variables with> the original > names I intended. Then the following validation code> you expect will > work. I think the sample you downloaded probably has> something like > this in it. It differentiates between the one> variable holding the > file itself, and the others by looking for the> presence of "filename" > in the string. Sounds complicated and looks ugly,> but once you wrap > your head around it, it makes sense.> > Terry> >-------------------------------------------------------------> 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://webdna.smithmicro.com/> __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site!http://smallbusiness.yahoo.com/resources/ -------------------------------------------------------------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://webdna.smithmicro.com/
Lester
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:
Database Strategy - more... (1998)
[WriteFile] problems (1997)
I've been thinking (2002)
Re1000001: Setting up shop (1997)
WebCat 5 Intranet Question (2003)
[WebDNA] Math variable name length limitations ... (2012)
carriage returns in data (1997)
Emailer (WebCat2) (1997)
WebCatalog not running after upgrade (2000)
[tcp connect] (1998)
Bug or syntax error on my part? (1997)
WebTen and WebCat (1997)
Re[2]: Using [Include] Context (1999)
HTML encoding in URLs (1997)
RE: Loss in form (1998)
Problems problems problems (1997)
syntax question, not in online refernce (1997)
Hiding Brands (2004)
[ConvertChars] problem (1997)
Browser Caching (2003)