Can you all help me with the approach I need to take once the user has submitted his data, I want those certain fields to be read-only permanently for that user upon submit.
So far I am able to save the data to MYSQL DB on submit and the below code also keeps the data in the field. But on refresh, the data in the form field disappears. How do I solve this? Any help and suggestions are greatly appreciated. Thank you.
<label class="control-label col-sm-2" for="lname">Last Name*</label>
<input type="text" class="form-control" id="lastname" placeholder="Last
Name" name="lastname" value="<?php if(isset($_POST['lastname'])) {echo
htmlentities($_POST['lastname']);}?>" autocomplete="nope" required/>