You don't need php to do this, you need javascript/css 1. create a div that contains all your comments, give it an id or a class that you refer to in your css file <div id='comment'> comments go here </div> 2. in the css, set 'display: none;' for the div that contain comments 3. create a button on your page 4. add the onclick event (javascript) to the button <input type='button' value='show comments' onclick="document.getElementById('comment').style.display=block;"> this is all from the top of my head, I usually keep javascript language reference nearby. If you want to do some other things or just to keep things readable in your code, you could create a function that doest the same. <input type='button' value='show comments' onclick="showcomments()"> <script type='javascript'> var comment = document.getElementById('comment').style; comment.display = 'block'; </script> Warning: this will NOT create the slider effect, you need something like on [a href=\"http://script.aculo.us\" target=\"_blank\"]http://script.aculo.us[/a] for that, don't ask me questions about it, cos I just know it exists, never used it