Download CGI Validate - CGI Validate Description, CGI Validate Reviews
Contact
 


 

Download

 
Download Now (9K)
Perl Artistic License
Downloads till now: 1
 
 

Quick search

 



 

Rate this software

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

No. Votes

0

 

Linux

Assembler Tools , Bug Tracking , Code Generators , Compilers , Debuggers , Disassemblers , Internationalization , Interpreters , Libraries , Localization, Perl Modules , Preprocessors , Quality Assurance and Testing , UI (User Interfaces) , Version Control , Widgets ,

Windows

Mac

Mobile

Drivers

Scripts - DHTML

Scripts - DHTML (new)

Web Developer Blog

Web Developer Blog (new)

Scripts and Applications

Ajax
ASP
ASP.NET
C and C++
CFML
CGI and Perl
Flash
Java
JavaScript
PHP
Python
XML

CGI::Validate

 

Details

Size: 9K
Last Update: 2008-05-13 22:14:59
Version: 2.000
OS Support: Linux
License/Program Type: Perl Artistic License
Publisher: Byron Brummer
Price:$0.00
Description:

CGI::Validate 2.000 is libraries software developed by Byron Brummer.
CGI::Validate is an advanced CGI form parser and type validation.



SYNOPSIS

use CGI::Validate; GetFormData() only
use CGI::Validate qw(:standard); Normal use
use CGI::Validate qw(:subs); Just functions
use CGI::Validate qw(:vars); Just exception vars

If you don't want it to check that every requested
element arrived you can use this. But I don't recommend it
for most users.
$CGI::Validate::Complete = 0;

If you don't care that some fields in the form don't
actually match what you asked for. -I don't recommend
this unless you REALLY know what you're doing because this
normally meens you've got typo's in your HTML and we can't
catch them if you set this.
$CGI::Validate::IgnoreNonMatchingFields = 1;

my $FieldOne = 'Default String';
my $FieldTwo = 8;
my $FieldThree = 'some default string';
my @FieldFour = (); For multi-select field
my @FieldFive = (); Ditto
my $EmailAddress= '';

Try...
my $Query = GetFormData (
'FieldOne=s' => $FieldOne, Required string
'FieldTwo=i' => $FieldTwo, Required int
'FieldThree' => $FieldThree, Auto converted to the ":s" type
'FieldFour=s' => @FieldFour, Multi-select field of strings
'FieldFive=f' => @FieldFive, Multi-select field of floats
'Email=e' => $EmailAddress, Must 'look' like an email address
) or do {
Catch... (wouldn't you just love a case statement here?)
if (%Missing) {
die "Missing form elements: " . join (' ', keys %Missing);
} elsif (%Invalid) {
die "Invalid form elements: " . join (' ', keys %Invalid);
} elsif (%Blank) {
die "Blank form elements: " . join (' ', keys %Blank);
} elsif (%InvalidType) {
die "Invalid data types for fields: " . join (' ', keys %InvalidType);
} else {
die "GetFormData() exception: $CGI::Validate::Error";
}
};

If you only want to check the form data, but don't want to
have CGI::Validate set anything use this. -You still have full
access to the data via the normal B object that is returned.

use CGI::Validate qw(CheckFormData); not exported by default
my $Query = CheckFormData (
'FieldOne=s', 'FieldTwo=i', 'FieldThree', 'FieldFour',
'FieldFive', 'Email',
) or do {
... Same exceptions available as GetFormData above ...
};

Need some of your own validation code to be used? Here is how you do it.
addExtensions (
myType => sub { $_[0] =~ /test/ },
fooBar => &fooBar,
i_modify_the_actual_data => sub {
if ($_[0] =~ /test/) { data validation
$_[0] = 'whatever'; modify the data by alias
return 1;
} else {
return 0;
}
},
);
my $Query = GetFormData (
'foo=xmyType' => $foo,
'bar=xfooBar' => $bar,
'cat=xi_modify_the_actual_data' => $cat,
);


Builtin data type checks available are:
s string Any non-zero length value
w word Must have at least one w char
i integer Integer value
f float Float value
e email Must match m/^s
CGI::Validate 2.000 supports english interface languages and works with Linux.

Downloading CGI::Validate 2.000 will take several seconds if you use fast ADSL connection.

Leave a comment




(optional)

What is 7-3?




0 comments


Add to

 Del.icio.us   Digg It   Furl   YahooMyWeb   Blinklist
 

CGI::Validate Version History

Product Date Added
CGI::Validate 2.000 2008-05-13 22:14:59


Related Software

Bigtop::Docs::TentTut
From category: Libraries
Bigtop::Docs::TentTut 0.14 is libraries software developed by Phil Crow. Bigtop::Docs::TentTut is Perl module for tentmaker Tutorial (best viewed in html). If you don\'t know what Bigtop is,...
Database Primitives Library
From category: Libraries
Database Primitives Library 1.0.0 is libraries software developed by Kevin L. Mitchell. DBPrim project is a library providing basic building blocks for creating in-memory databases. Here are...
SleekIce
From category: Compilers
SleekIce is an easy to use game engine used to write games in Java....
commoncplusplus
From category: Libraries
commonc++ is a C++ class library for developing cross-platform systems software for POSIX and Windows systems....
CodeWorker
From category: Code-Generators
CodeWorker 4.2 is code generators software developed by CodeWorker. CodeWorker is a versatile Open Source, licensed under GNU Lesser General Public License, parsing tool and a source code generator...
Blame
From category: Version-Control
Blame 1.3.1 is version control software developed by Michael Chapman. Blame displays the last modification for each line in an RCS file. Blame is the RCS equivalent of CVS&039;s annotate command.\...
Boo
From category: Assembler-Tools
Boo 0.7 is assembler tools software developed by Boo Team. Boo is a new object oriented statically typed programming language for the Common Language Infrastructure with a python inspired syntax an...
Apache::MP3::Skin 0.91
From category: Libraries
Apache::MP3::Skin 0.91 is libraries software developed by Robert Graff. Apache::MP3::Skin is a subclass of Apache::MP3::Playlist with the ability to \"skin\" the output using HTML::Template. \...
Bugzilla
From category: Bug-Tracking
Bugzilla 2.23.3 is bug tracking software developed by The Mozilla Organization. Bugzilla project is server software designed to help you manage software development. Bugzilla is a \"Defect T...
euCatalogue
From category: Libraries
euCatalogue 1.2 Beta is libraries software developed by Markos Charatzas. euCatalogue is a catalogue framework in Java to help you build a generic catalogue structure. euCatalogue includes a...
DBIx::DataModel
From category: Libraries
DBIx::DataModel 0.21 is libraries software developed by Laurent Dami. DBIx::DataModel is a Perl module with Classes and UML-style Associations on top of DBI. SYNOPSIS in file \"MySche...
MyPerlCrap
From category: Libraries
MyPerlCrap is meant to simulate playing the field at a craps table....
Class::Tangram
From category: Libraries
Class::Tangram 1.57 is libraries software developed by Sam Vilain. Class::Tangram is a Perl module for tangram-friendly classes, DWIM attributes. SYNOPSIS package MyObject; u...
Bellagio OpenMAX IL Implementation
From category: Libraries
Bellagio OpenMAX IL Implementation 0.2 is libraries software developed by STMicroelectronics. Bellagio is a sample implementation of OpenMAX IL for Linux. It enables software developers and...
ccache
From category: Compilers
ccache 2.4 is compilers software developed by Andrew Tridgell. ccache is a compiler cache. It acts as a caching pre-processor to C/C++ compilers, using the -E compiler switch and a hash to detect w...
 

Top Downloads

 
1. Canon PIXMA iP1200 Printer Driver
2. Canon PIXMA iP1000 Printer Driver
3. Realtek ALC/ 262/ 265/ 268/ 660/ 861/ 880/ 882/ 883/ 885/ 888 Audio
4. Genius Eye 110 Webcam Driver
5. Canon PIXMA iP1300 Printer Driver a
6. Realtek RTL8139C(L)+/RTL8139D(L)/RTL8100(L)/RTL8130/RTL8139B(L) Driver
7. Canon PIXMA iP1200 Printer Driver d
8. Canon PIXMA iP1600 Printer Driver
9. INTEX LAN Card D RTL
10. Realtek RTL8100B(L)/RTL8100C(L)/RTL8101L/RTL8139C(L) Driver XP
11. TomTom HOME
12. Biostar M6VLB Bios
13. Canon LaserShot LBP-1210 Printer Driver
14. Canon PIXMA MP210 MP Drivers
15. MSI KT3V Bios c
16. Canon i560 Printer Driver
17. Mercury KPC-6225V
18. Canon PIXMA iP1300 Printer Driver c
19. Canon i-SENSYS LBP2900 Printer Driver R
20. dmg2iso

DownloadTube Editor Reviews

 
1. 001Micron USB Drive Recovery Review
This USB drive data recovery software easily recovers the da...
2. Tag Backup & Restore
Tag Backup & Restore - a robust and efficient audio tag arch...
3. Data Export - DBF2DB2
Hxtt Data Export - DBF2DB2 is a program to import DBF (dBASE...
4. Dokmee Professional
Every company has document records, whether it is paper base...
5. Arcus Odyssey
Long time ago, an evil sorceress Castomira decided to conque...
6. Mind Chest
Mind Chest is an entertaining game in which you can test and...
7. Free Escape From Paradise Screensaver
With this free Escape From Paradise Game screensaver you wil...
8. Mind Your Card
This wonderful Card Mind Reader game will reveal the very ca...
9. MSG Viewer Pro - EML and MSG Viewer
MSGViewer Pro is a powerful yet easy to use viewer, converte...
10. Fractalius plug-in
This plug-in creates unusual, eccentric artworks in a single...

Software Reviews Full List



Recent Blog Posts

 
1. FreeSnap
Another freeware tool that rocks is the little FreeSnap. Thi...
2. Streamripper for Winamp
Streamripper is an Open Source (GPL) application that allow...
3. Mozilla did it - Guinness World Record
The Guiness Book officials admitted - Mozilla has just set t...
4. Audio tools FOR BEGINNERS – the sample rate.
Most of the audio conversion tools or the sound recorders yo...
5. 30 streams only in Winamp
This was quite a known issue in some older versions of Winam...
6. Console wars
This week's been Elite launch week on Tech & Gadgets -ÂÃ...
7. Storyline in games
I was flicking through Edge's 'get into games' suppl...
8. The new Simpsons Avatars!
With The Simpsons movie on its way out ("Spider-pig, spider-...
9. Problems with kids
Had a fascinating weekend visiting some friends and their ki...
10. Fight for the future
It’s no longer news that Software-as-a-Serv...

Last 20 Scripts

 
1. phPay
phPay is a shop and catalog system based on PHP and SQL. Fea
2. Random Numbers
Use this script to pick 16 random numbers. Lottery, for fun,
3. Image Gallery Pro
Image Gallery Pro is Image Gallery Software/ Photo Gallery S
4. WWWBoard
WWWBoard is an ASP-based discussion board system that works
5. ImageInfo
To optimize your site's load time you should always code in
6. VideoPlayer Xavi
Creating your own customized videoskin is sometimes a big pr
7. PHP file sharing
PHP Script sharing files with others (site owners are welcom
8. How to make a Dynamic Image
This is a useful way of creating images that change dependin
9. WEBO
WEBO is targetted at individuals and small to medium size or
10. Account Expiration Control
This Free Software joomla! component allows you to offer pai
11. PhotoIndex Application
PhotoIndex is a PHP application that takes a large number of
12. Contact Box v2
Not use db or anything it is useless contact for your websit
13. Gchats Tiny Mp3 Player
Gchats Tiny Mp3 Player 2.0 is the best choice for having mul
14. Ceilidh
Ceilidh is a platform-independent engine for collaboration a
15. Jevonweb Guestbook
This is a very easy to use guestbook program. It includes a
16. Andrey's Applets Set
Cool applets set with 9 different applets. Fire simulation
17. RanCon
"RanCon" is a very basic random content insertion script.
18. Better Whois Script
A Perl/CGI script that uses HTML templates so you can totall
19. Demis Web Map Server
The Demis Map Server is a professional web mapping component
20. Bingoware
The software allows the user to generate a given number of B