comment form name and email not working?

Question

I am trying to post comment using the comment form but it says:

Error: Please fill the required fields (name, email).

what should I do, please?
here is my code:

'author' =>
                '<div class="row padding-xs-top">
                <div class="col-md-4 col-sm-4">
                    <div class="form-group ct-form-group-label--float"><label for="contact_name">' . '</label> <span class="required"></span><input id="contact_name" name="field[]" class="form-control input-lg" type="text" value="Name *"' . esc_attr( $commenter['comment_author'] ) . '" required="required" /></div></div>',
                
            'email' =>
                '<div class="col-md-4 col-sm-4">
                <div class="form-group ct-form-group-label--float"><label for="contact_email">' . '</label> <span class="required"></span><input id="contact_email" name="field[]" class="form-control input-lg" type="email" value="Email *"' . esc_attr(  $commenter['comment_author_email'] ) . '" required="required" /></div></div>'

0
social 4 months 0 Answers 16 views 0

Leave an answer