WordPress.org

Ready to get started?Download WordPress

Forums

Comment form fields pre filled with garbage (2 posts)

  1. David
    Member
    Posted 7 years ago #

    My comment fields have become pre-filled with garbage characters. As example, here is the HTML from my comment form on a page:

    <p>
    <label for="author">
    <input name="author" id="author" value="nL7IYrTR7WHjWz0PhzUJJz5IHxqy_ZoqmyJV2q3fKpo." tabindex="1" class="TextField" style="width: 210px;" type="text">Name <small>(required)</small></label>
    </p>
    
    <p>
    <label for="email">
    <input name="email" id="email" value="0-Qdoa4Ya2dY1aPJ5oyh73qMo8OxOgbq_GC8DbYKiFx_6JAaC2gXw3GqzDbPTHeF" tabindex="2" class="TextField" style="width: 210px;" type="text">E-mail <small>(required, never displayed)</small></label>
    
    </p>
    
    <p>
    <label for="url">
    <input name="url" id="url" value="http://UgcuP3bdzS5Lt3Sm2IWTnnCtTw51ydTsEzO5KmKcwKdf_VxXlpd3QVhjWaHGrgMi" tabindex="3" class="TextField" style="width: 210px;" type="text"><abbr title="Uniform Resource Identifier">URI</abbr></label>
    </p>
    
    <p>
    <textarea name="comment" id="comment" rows="10" tabindex="4" class="TextArea" style="width: 440px;"></textarea>
    </p>

    Any ideas?

  2. Pipedreamergrey
    Member
    Posted 7 years ago #

    I suggest you download another template, then transplant the necessary code. Here's the code in the template I use:

    <?php if ( $user_ID ) : ?>

    <p><?php _e('Logged in as'); ?> /wp-admin/profile.php"><?php echo $user_identity; ?>. /wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>"><?php _e('Logout'); ?> »</p>

    <?php else : ?>

    <p>
    <?php _e('Name:'); ?> <?php if ($req) _e('(Required)'); ?><br/>

    <input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" tabindex="1" />
    </p>

    <p>
    <?php _e('eMail:'); ?> <?php if ($req) _e('(Required)'); ?><br/>
    <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" tabindex="2" />
    </p>

    <p>
    <?php _e('Website:'); ?><br/>
    <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" tabindex="3" />
    </p>

    <?php endif; ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags