Hello friends. 🆒
I want to modify this
if(isset($Submit)){
$error_msg='';
if (trim($artist)=='' || strlen(trim($artist)) > 30 || ereg('[^[:space:]a-zA-Z0-9_.-]{1,}', $artist)) {
$error_msg.="<li>Please enter a <strong>Artist/Band Name </strong>max 30 max char long No special characters</li>";
}
// display error message if any, if not, proceed to other processing
if($error_msg==''){
echo "<script type=\"text/javascript\">window.location=\"uploadT.php\"</script>";
} else {
$valid_error = "<ol><font color=red>$error_msg</font></ol>";
}
}
This is OK?
if($error_msg > 1){
$valid_error = "<ol><font color=red>$error_msg</font></ol>";
} else {
Thnx 🆒