show value in a field after submit in php

Question

I am having issues in retaining the value in the form field after the user has clicked on submit and has to return back to the same as some error in validation is presented to the user. I have gone through the link below:- Keep text in text field after submit

but still it hasn't resolved my query . I have tried to test whether the field can display a static value using value="" sub tag within the input tag.Even that is also not appearing within the field.

I have gone through the entire CSS of the form and have rechecked every part .still I am not getting a clue as to where I am wrong ! This is a sample field below:-

     <div class="row control-group">
       <div class="form-group col-xs-12 floating-label-form-group controls">
         <label for="name">Full Name</label>
         <input type="text" class="form-control" placeholder="Full Name" id="name" name="name" ng-model="name">
        <span ng-show="nameerror" style="color:red;">
          <b>*Text only</b>
        </span></br>
        <p style="color:red">
          <?php if(isset($_SESSION["nameerr"])) echo $_SESSION["nameerr"]; unset($_SESSION["nameerr"]); ?>
        </p>
     </div>

The corresponding CSS for that div is:-


Show source
| validation   | css   2017-10-04 22:10 0 Answers

Answers to show value in a field after submit in php ( 0 )

Leave a reply to - show value in a field after submit in php

◀ Go back