Restriction : ps
This commit is contained in:
parent
9e97663828
commit
b2590bec9d
@ -43,7 +43,7 @@
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php unset($_SESSION['success']);unset($_SESSION['error']); endif; ?>
|
||||
<?php if (session()->getFlashdata('error')) : ?>
|
||||
<div class="alert alert-danger alert-dismissible fade show" role="alert">
|
||||
<?= session('error') ?>
|
||||
@ -51,7 +51,7 @@
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php unset($_SESSION['success']);unset($_SESSION['error']); endif; ?>
|
||||
<?php
|
||||
unset($_SESSION['success']);unset($_SESSION['error']);
|
||||
endif; ?>
|
||||
@ -122,7 +122,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group text-right m-b-0">
|
||||
<button type="submit" class="btn btn-primary waves-effect waves-light mr-1" id="submitBtn">
|
||||
<button type="submit" class="btn btn-primary waves-effect waves-light mr-1" id="submitBtn1">
|
||||
Send
|
||||
</button>
|
||||
</div>
|
||||
@ -187,7 +187,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group text-right m-b-0">
|
||||
<button type="submit" class="btn btn-primary waves-effect waves-light mr-1" id="submitBtn">
|
||||
<button type="submit" class="btn btn-primary waves-effect waves-light mr-1" id="submitBtn2">
|
||||
Send
|
||||
</button>
|
||||
</div>
|
||||
@ -293,10 +293,10 @@
|
||||
|
||||
form.reportValidity(); // Display validation error messages
|
||||
event.preventDefault(); // Prevent form submission if it's not valid
|
||||
$('#submitBtn').prop('disabled', false);
|
||||
$('#submitBtn1').prop('disabled', false);
|
||||
} else {
|
||||
|
||||
$('#submitBtn').prop('disabled', true);
|
||||
$('#submitBtn1').prop('disabled', true);
|
||||
}
|
||||
});
|
||||
document.getElementById('myForm2').addEventListener('submit', function(event) {
|
||||
@ -315,14 +315,14 @@
|
||||
// alert("if-if");
|
||||
form.reportValidity(); // Display validation error messages
|
||||
event.preventDefault(); // Prevent form submission if it's not valid
|
||||
$('#submitBtn').prop('disabled', false);
|
||||
$('#submitBtn2').prop('disabled', false);
|
||||
} else {
|
||||
// alert("if-else");
|
||||
$('#submitBtn').prop('disabled', true);
|
||||
$('#submitBtn2').prop('disabled', true);
|
||||
}
|
||||
}else{
|
||||
// alert("else");
|
||||
$('#submitBtn').prop('disabled', true);
|
||||
$('#submitBtn2').prop('disabled', true);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user