Title: Display user information:  Comments.php
Last modified: August 18, 2016

---

# Display user information: Comments.php

 *  [JSiefer](https://wordpress.org/support/users/jsiefer/)
 * (@jsiefer)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/display-user-information-commentsphp/)
 * I want to display the user’s information before they post a comment. I am editing
   the comment.php file and I need to know how to display the information for the
   users first name, last name and email address by adding code to this file. I 
   have tried lots of stuff, but haven’t gotten anything to work. Thanks. P.S.: 
   I’m pretty new to WordPress.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/display-user-information-commentsphp/#post-320034)
 * Even if you not an “user” (registered) and just commented on a WP blog, when 
   you go back next time to that blog – you see your name, email and URI in the 
   form, due to the cookies.
 *  Thread Starter [JSiefer](https://wordpress.org/support/users/jsiefer/)
 * (@jsiefer)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/display-user-information-commentsphp/#post-320227)
 * I am unsure how to access these cookies and use them in my form. Perhaps it is
   best just to deminstrate what I am trying to do.
 * If you go to my site “[http://www.jmsiefer.com&#8221](http://www.jmsiefer.com&#8221);
   
   Login as: “test user” Password: “test” .. then go to this page: “[http://www.jmsiefer.com/index.php?p=62&#8221](http://www.jmsiefer.com/index.php?p=62&#8221);
 * What I have done is changed the form at the bottom, so instead of adding a comment
   about the post, they fill out a form regardging the product (which then sends
   the information to a .php script that I have written and collects the data into
   an Excel sheet.) I am trying to write the cookies as hidden data into the form,
   so that the user information will show up in the Excel doucment too. I hope this
   all makes sense.
 * I JUST CAN’T GET THE DANG USER INFORMATION TO GO ALONG WHEN SUBMITTING THE FORM.
   What are the names of the cookies for the user information? Thanks much. -J.
 * P.S.: I should add that when I look at the cookies that I can find, their names
   are: “wordpressuser_32ee9012545dfe7550…” hashed cookies. Can I get information
   out of these?
 *  Thread Starter [JSiefer](https://wordpress.org/support/users/jsiefer/)
 * (@jsiefer)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/display-user-information-commentsphp/#post-320235)
 * (I want to remove “Step 1” altogether on link I posted above)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Display user information: Comments.php’ is closed to new replies.

## Tags

 * [author](https://wordpress.org/support/topic-tag/author/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [JSiefer](https://wordpress.org/support/users/jsiefer/)
 * Last activity: [20 years, 4 months ago](https://wordpress.org/support/topic/display-user-information-commentsphp/#post-320235)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
