I developed an alphanumeric generator routine, to be placed in a field of a form. However, it does not generate numbering. Can anyone help?
This field below:
<div class="guiaprest">
<label name="tPrest"> 2- Nº Guia no Prestador</label>
</div>
So I did some research on the internet, and I found a template and did so:
<?php
function rand_sem_num_repetido($qtd_numeros,$limite_min,$limite_max){
for($i=0;$i<=$qtd_numeros;$i++){
$aux=rand($limite_min,$limite_max);
if($i>=1){
while(in_array($aux,$index)){
$aux=rand($limite_min,$limite_max);
}
}
$index[$i]=$aux;
}
return $index;
}
?>