(must use ereg, knowing is it deprecated)
Looking to base the 2,5 parameters, on another $url variable value:
elseif((isset($_POST['ab'])) && (!ereg('^[1-9]+([\0-9\.,]{2,5})$', $Gformed)))
Have not had luck accomplishing this dynamically
if ($url=='12'){
$limits = "2,5";}
if ($url=='13'){
$limits = "1,3";}
Then of course placing $limits within the brackets.
Must this be done within a two part string? I am missing something obvious?
elseif((isset($_POST['ab']))&& (if($url==12)){!ereg('^[1-9]+([\0-9\.,]{2,5})$', $Gformed})))
if($url==13)){!ereg('^[1-9]+([\0-9\.,]{1,3})$', $Gformed))))