Re: form validator issue
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 61498
interpreted = N
texte = i snatched the simple upload form example that i foundon a webdna website.let me slowly recreate the form with that as my basisfirst.the weird thing is that the technique I use here I'veused in many a site and it behaves a-ok, always has.It's just when I add ( enctype="multipart/form-data" )it misbehaves.I'll let you know what happens this evening--- Dan Strong
wrote:> I have a blank field-catcher javascript that I use> all the time that I'd be happy to share that > works nicely... that is, if you're interested in> validating client-side. LMK.> -Dan> > On Fri, 18 Mar 2005 14:15:06 -0800 (PST)> Lester wrote:> > arghhhhh> > > > no luck> > tried both [math] and [text] ways.> > > > everything fails with > > enctype="multipart/form-data"> > added to the form.> > > > > > listing the form variables in all instances I get> > this:> > 8,Content-Disposition: form-data; name="BlogText",> > 9,Content-Disposition: form-data;> name="BlogTitle",> > > > can't see anything being passed for Text or Title,> > sure appears blank in all cases when I leave it> blank> > ......> > > > so then why would > > [showif [BlogText]=].....[/showif]> > or> > [showif [url][BlogText][/url]=]....[/showif]> > > > pass through?> > > > only happens with > > enctype="multipart/form-data"> > > > > > I remove that and all is well.> > > > > > > > --- Sal D'Anna wrote:> >> I've never used [Math] before to do a validation,> >> I've> >> always used [text]> >> > >> Try this> >> > >> [showif> >>> >>[BLOGTITLE]=][text]failed=T[/text]BLOGTITLE:
[/showif]> >> > >> [showif [failed]=T]> >> Error!
> >> Enter a Blog Title
> >>
> >> [/showif]> >> > >> Sal D'Anna> >> -----Original Message-----> >> From: WebDNA Talk> >> [mailto:WebDNA-Talk@talk.smithmicro.com] On> Behalf> >> Of> >> Lester> >> Sent: Friday, March 18, 2005 8:24 AM> >> To: WebDNA Talk> >> Subject: form validator issue> >> > >> I have a pretty simple form.> >> > >> A few fields that I require to be filled out used> in> >> a> >> blog type site. All was well until I added the> >> ability> >> to upload a photo on the same form.> >> > >> > >> I use this technique to make sure certain fields> are> >> not empty and if they have data the [append]> >> continues...> >> > >> [math show=f]OK=1[/math]> >> > >> [showif [BlogTitle]=]> >> Error!
> >> Enter a Blog Title
> >>
> >> [math show=f]OK=0[/math]> >> [/showif]> >> > >> etc etc > >> > >> > >> If "OK=1" the [append] takes place, if not the> error> >> warns the user.> >> > >> Before I adedd the upload photo part my form> began> >> this way:> >>