I'm having a trouble getting my php script to validate user input what am I doing wrong here? This just displays the error message all the time.
for example:
if(!preg_match("/[^a-zA-Z0-9\.\-\Ä\ä\Ö\ö\Ü\ü\ ]+$/",$name)||empty($name))
{
print '<td colspan="2" class="ErrorText"><div align="right">Please enter a valid name without special characters i.e. *,/,< etc. </div></td>';
$error++;
}