Re: [Zope] Rookie Question - Syntax
On Wednesday 29 November 2000, at 8 h 20, the keyboard of Eric Walstad <[EMAIL PROTECTED]> wrote: > I like to let javascript handle the validation, it lightens the load a > little on the server. You still need server-side validation, otherwise, a rogue user can set up a form which will allow invalid entries (or he can simply disable Javascript). ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Rookie Question - Syntax
Walter Pleyer wrote: > I must check if some must-fields from a form were filled out by a user. > Checking data from a single field is no problem, but what's the correct > syntax for checking more than one field (e.g. "name", "address", "email") ? I probably could answer your question as stated, but I'm too lazy. Instead, I will say that you should do such a thing from JavaScript instead. This is a discussion for elsewhere, and I'd be happy to take the discussion off-line... -- "Where is the fancy bread, in the heart or in the head?" Daryl Stultz - python, blender, robots, really bad harmonica playing... [EMAIL PROTECTED] RedHat Linux 6.1 - Dual Pentium Pro ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Rookie Question - Syntax
Hi Walter, There's a good tutorial on how to design forms at: http://www.zope.org/Members/jules/smarterforms_html I like to let javascript handle the validation, it lightens the load a little on the server. I use Regular Expressions to check the validity of each field. There's a tutorial at: http://www.netpedia.com/features/javascript/objects2/ There was also a recent flurry of postings on this subject. You can search for them at: http://zope.nipltd.com/public/lists/zope-archive.nsf/$$Search?OpenForm Hope that helps, Eric. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Walter Pleyer Sent: Wednesday, November 29, 2000 6:45 AM To: [EMAIL PROTECTED] Subject: [Zope] Rookie Question - Syntax Hi folks! I am a Zope/Python-Rookie and Ihave a probably quite simple problem: I must check if some must-fields from a form were filled out by a user. Checking data from a single field is no problem, but what's the correct syntax for checking more than one field (e.g. "name", "address", "email") ? Thanx Walter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Rookie Question - Syntax
Hi folks! I am a Zope/Python-Rookie and Ihave a probably quite simple problem: I must check if some must-fields from a form were filled out by a user. Checking data from a single field is no problem, but what's the correct syntax for checking more than one field (e.g. "name", "address", "email") ? Thanx Walter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )