Hi,

I have made a function and have put it into a for() loop so that it can change one function to make 12 of them with different names.

How can I write the $ie in the function properly so that it doesn't throw up errors.

PHP Code:
for($ie=0$ie 13$ie++){

function 
valfmail$ie($fmail$ie){
      
$patf "^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$";
  if (
eregi($patf$fmail$ie)){
     return 
true;
}else{
     return 
false;
}}

Thanks!