How to Disable Submit Button After Form Submission in PHP?
In this post we will give you information about How to Disable Submit Button After Form Submission in PHP?. Hear we will give you detail about How to Disable Submit Button After Form Submission in PHP?And how to use it also give you demo for it if it is necessary.
I will help you for how to disable submit button after click in jquery php. we can prevent double click submit button in jquery html. it will help you to disable submit button after click in php, laravel, codeigniter etc project that use jquery.
Laravel 5 - Class 'Input' not found issue?
In this post we will give you information about Laravel 5 - Class 'Input' not found issue?. Hear we will give you detail about Laravel 5 - Class 'Input' not found issue?And how to use it also give you demo for it if it is necessary.
When i start to work on Laravel 5.2 at that time i fetch this problem "Class 'Input' not found". When i copy my old controller code from laravel 5.1 version that time i found this issue, but i also could use Input insted to Request but i want to use Input as it is. But at last found solution. you have to just use following aliase on your controller.
use IlluminateSupportFacadesInput as Input
Hope this code and post will helped you for implement Laravel 5 - Class 'Input' not found issue?. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs
Sometime, we have to prevent too many clicks on submit button. if you are working on register form with php then it might be take time to submit form because of long processes of submit page. But if user have server issue or Internet issue etc then he will just click again and again. So may it can create problem form us. so basically you must prevent it by using disabled submit button after one click using jquery.
Here bellow simple example will help you to resolved your problem by using bellow example. You can see full example so it can help you in your php project.
Example:
<!DOCTYPE html>
<html>
<head>
<title>How to Disable Submit Button After Form Submission in PHP? - ItSolutionStuff.com</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
</head>
<body>
<form action="/post.php" method="POST" id="my-form">
<input type="text" name="name">
<input type="text" name="email">
<button type="submit" id="btn-submit">Submit</button>
</form>
<script type="text/javascript">
$(document).ready(function () {
$("#my-form").submit(function (e) {
$("#btn-submit").attr("disabled", true);
return true;
});
});
</script>
</body>
</html>
I hope it can help you…
Hope this code and post will helped you for implement How to Disable Submit Button After Form Submission in PHP?. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs