hello, i would like to know how can i put the forms i created to my database in a webpage so i could add data to the data base trough web...
is it doable? i have the db ready in access 07, forms, just don't know how to do it.
i need to validate also a number when is entered in the form, with a function that does the same than this one:
bit i don't know how to do it or in which language to write it... i'm a nooob...:s
tank you so much in advance...
is it doable? i have the db ready in access 07, forms, just don't know how to do it.
i need to validate also a number when is entered in the form, with a function that does the same than this one:
PHP:
<?php
function validarNIF($nif) {
if ( (!is_null($nif)) && (is_numeric($nif)) && (strlen($nif)==9) && ($nif[0]==1 || $nif[0]==2 || $nif[0]==5 || $nif[0]==6 || $nif[0]==8 || $nif[0]==9) ) {
$dC = $nif[0] * 9;
for ($i=2;$i<=8;$i++)
$dC += ($nif[$i-1])*(10-$i);
$dC = 11-($dC % 11);
$dC = ($dC>=10)?0:$dC;
if ($dC==$nif[8])
return TRUE;
}
}
$var = validarNIF("123456789");
if ($var)
echo "is valid";
else
echo "invalid";
?>
bit i don't know how to do it or in which language to write it... i'm a nooob...:s
tank you so much in advance...