...

PHP function not validating

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();
}

Fou-Lu
02-05-2009, 02:32 AM
You have a previous thread on this topic. It has been moved from the incorrect snippets forum to the correct forum.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum