Hi,

I Have the following issue.
In my form I have a field that doesn't need to be filled, but if it does it needs to have a value that is 5 or higher.

Currently it is being checked on a value lower then 5
PHP Code:
if ($_POST['value'] < 5){
$error .= "Error melding."
}else{
$code .= $_POST['value'];

I thought to fix this with a elseif statement, but this doesn't work. Probably because I do it wrong
PHP Code:
if ($_POST['value'] < 5){
$error .= "Error melding."
}elseif (!empty 
$_POST['value']){
$code .= $_POST['value'];
}
else{
$code .= $_POST['value'];

Any ideas?
Thnx