Skip to Main Content
Hack Proofing Your Web Applications
book

Hack Proofing Your Web Applications

by Syngress
June 2001
Intermediate to advanced content levelIntermediate to advanced
512 pages
18h 49m
English
Syngress
Content preview from Hack Proofing Your Web Applications
How to Avoid Becoming a “Code Grinder” • Chapter 2 73
my $sth = $dbh->prepare($statement);
# execute our query, terminate upon error
$sth->execute
or die $sth->errstr;
# clean up after ourselves with the next two statements
$sth->finish;
$dbh->disconnect;
print "It worked!"
}
}
sub validate_form
{
# get the form name from the args passed to the sub
my $which_form = shift;
# create a hash with key: page1 with a value of the required fields,
# stored as an anonymous array.
Just a note on this validation routine:We’d usually have multi-page
applications, so this method becomes right handy. It might seem overkill
for such a small program, but I hope you get the point. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Developer's Guide to Web Application Security

Developer's Guide to Web Application Security

Michael Cross
The CERT® Oracle® Secure Coding Standard for Java™

The CERT® Oracle® Secure Coding Standard for Java™

Fred Long, Dhruv Mohindra, Robert C. Seacord, Dean F. Sutherland, David Svoboda
Troubleshooting CentOS

Troubleshooting CentOS

Jonathan Hobson

Publisher Resources

ISBN: 9781928994312