Displaying image in HTML form field on file upload is very easy with the use of javascript. Let's add a little more effect to make it look more attractive.
Hide file upload button from HTML page and replace it with a text or icon link
If you have a look at most of the social platforms, they have one thing in common related to file upload and that's the file or image upload button which is not present in the form and a plain text or icon link does the work. It helps us ge...
Read more »
2 Answer 272133 Views
phpMyAdmin Error - incorrect format parameter might appear due to multiple reasons such as:
Execution of a script exceeding the defined maximum execution time.
Parsing of requested input data exceeds the defined maximum input parsing time.
Script needing operating memory higher than the one defined in memory limit.
Size of post data higher than the defined maximum post data size.
Size of the file being uploaded higher than the define...
Read more »
1 Answer 124030 Views
Basically, the general idea is to redirect the user to some other pages after the form submission which would stop the form resubmission on page refresh but if you need to hold the user in the same page after the form is submitted, you can do it in multiple ways.
Unset Form Data
One way to stop page resubmission on page refresh is to unset the form data after it is submitted so that the variable storing form dat...
Read more »
1 Answer 92681 Views
Using javascript validation is one of the most appealing part in web development where you can display errors messages to users in case a form doesn't contain required field data. Let's add a form first before working on the validation part.
<form name="myForm" method="post" onsubmit="return validateForm()">
<div class="form-group">
<label>Your Name</label> <span id="error-name"></span>
<input type="text" name="your-name" class="form...
Read more »
1 Answer 66715 Views
Most of the web applications have more than one user where different roles and permissions are defined to each set of such users. To verify the users authentication level and control access to the pages, these applications need to have different authentication modules. Using Middleware, you can easily implement such authentication filters in Laravel.
Lets have a look on how to add custom authentication middleware in Laravel.
Add a custom field in the U...
Read more »
1 Answer 57005 Views