A man claiming to be James Holmes created a profile on a popular sex website just days before "The Dark Knight Rises" massacre, according to TMZ.com.

"Holmes" created the profile on AdultFriendFinder.com July 5 -- and included a picture of himself with reddish, orange hair ... just as officials in Aurora, CO said he looked when he was apprehended Friday morning.

"Holmes" -- who used the screen name classicjimbo -- included a cryptic message on the top of the profile which reads, "Will you visit me in prison?"

In his profile, "Holmes" says he's 6'0" and single ... with an athletic body.

"Holmes" describes himself as a "light/social drinker" ... but in the section where he was asked if he smokes or does drugs, he answered, "I'd prefer not to say."