View Single Post
Old 10-11-2009, 01:18 AM   #2 (permalink)
Village Idiot
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

There is no sure fire way to do this. You can do it by IP, but clients IPs change. You can also create a cookie and use that, but that can also change.

To do it by IP, insert the IP with the comment and only display unapproved comments when the stored IP matches the client's. To get the clients IP use $_SERVER['REMOTE_ADDR']
__________________

Village Idiot is offline  
Reply With Quote
The Following User Says Thank You to Village Idiot For This Useful Post:
superthin (10-11-2009)