• 23-06-2022, 17:03:37
    #1
    Kimlik doğrulama veya yönetimden onay bekliyor.
    merhaba kolay gelsin
    input içerisine nokta virgül gibi değerleri engellemek istiyorum bir türlü çözemedim. yardımcı olabilirmisiniz teşekkürler.
  • 23-06-2022, 17:06:17
    #2
    if(preg_match("/^[a-zA-Z0-9]+$/", $str) == 1) {    // string only contain the a to z , A to Z, 0 to 9
    }
    https://stackoverflow.com/questions/2896450/allow-only-a-za-z0-9-in-string-using-php
  • 23-06-2022, 17:09:41
    #3
    $veri = str_replace(array(".",","),"",$input);
  • 24-06-2022, 01:11:35
    #4
    document.getElementById('inputid').addEventListener('input', function(){
        this.value = this.value.replace(/[^a-z0-9 şŞğĞüÜçÇöÖıİ]+/gi,'');
    });
    örnek https://jsfiddle.net/n10fqdao/