I\'m a PHP newbie, so I have a minor problem functions. I have this line of code:
You can't use $pera
inside the method like that because it's not defined inside the method scope.
If you want to use the method, pass it as a parameter.
function provera($prom, $pera){ //passed as a param
if (preg_match("/[0-9\,\.\?\>\.<\"\'\:\;\[\]\}\{\/\!\\\@\#\$\%\^\&\*\(\)\- \_\=\+\`[:space:]]/",$prom)){
echo "Nepravilan unos imena ili prezimina!";
echo $pera;
}