ltswaka
02-05-2009, 02:17 AM
HI
I have this function that doesn't validate user input as required; and inserts values into tables. i.e
function ur() {
if(empty($_POST['a'])) {
if(!eregi('[a-z]', $_POST['a']) {
print "error";
}
}
call to database insert statement made here
}
on the main form
if(!isset($submit)) {
ur();
}
I have this function that doesn't validate user input as required; and inserts values into tables. i.e
function ur() {
if(empty($_POST['a'])) {
if(!eregi('[a-z]', $_POST['a']) {
print "error";
}
}
call to database insert statement made here
}
on the main form
if(!isset($submit)) {
ur();
}