Severity: 8192
Message: Return type of CI_Session_files_driver::open($save_path, $name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 113
Severity: 8192
Message: Return type of CI_Session_files_driver::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 280
Severity: 8192
Message: Return type of CI_Session_files_driver::read($session_id) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 145
Severity: 8192
Message: Return type of CI_Session_files_driver::write($session_id, $session_data) should either be compatible with SessionHandlerInterface::write(string $id, string $data): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 223
Severity: 8192
Message: Return type of CI_Session_files_driver::destroy($session_id) should either be compatible with SessionHandlerInterface::destroy(string $id): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 303
Severity: 8192
Message: Return type of CI_Session_files_driver::gc($maxlifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 344
Severity: 8192
Message: setcookie(): Passing null to parameter #7 ($httponly) of type bool is deprecated
Filename: core/Input.php
Line Number: 410
Başka bir makalede jquery ile form kontrolü uygulaması yapımını anlatmıştık. Onda da e-mail doğrulaması vardı ancak sade olsun diye ayrı bir makalede kodları vermek istedim. Örneğimizde e-mail için bir input alanı olacak ve klavyeden her tuşa bastığınızda e-mailin geçerli olup olmadığı kontrol edilecek. Bu işlemi javascriptte yapıyor olsaydık anlık kontrol yapamayacaktık fakat jQuery bize bu imkanı sağlıyor. Eğer anlık olarak e-mail doğrulaması istemiyorsanız javascript ile e-mail doğrulama yazısını inceleyebilirsiniz.
$(document).ready(function(){
$("#uye_formu").on("keyup", function(event){
form_kontrolu();
});
});
function form_kontrolu()
{
var email = $("input[name=email]").val();
var atpos=email.indexOf("@");
var dotpos=email.lastIndexOf(".");
if ( atpos<1 || dotpos<atpos+2 || dotpos+2>=email.length )
$('.uyari').html("Geçerli email adresi girin");
else
{
$('.uyari').html("E-Mail adresi geçerli");
$('#uye_formu').removeAttr('onsubmit');
}
}
<div id="uyelik_formu">
<form action="#" name="uye_formu" id="uye_formu" method="post" onsubmit="return false;">
<label>E-Mail:</label>
<input type="text" name="email">
<input type="submit" value="Kaydet!">
</form>
<div class="uyari"></div>
</div>
YORUMLAR