On my blog, there are buttons below each post to hide or show comments and I'm trying to include a variable on that button that lists how many comments as well as the title of the post:
echo '<input type="button" name="cmdShow" id="cmdShow" value="Peekaboo $howmanycomments Comments On $titleofthepost" onclick="showContent('.$post['post_id'].');" />';
I've tried with different quote styles but can't make it fly. I can't find any examples of this condition.
Also, after this button I was trying to add a few blank lines to separate this post from the next one down. I've tried:
echo "\n ";
echo "\r ";
echo "<br>";
but it won't give me that space. I can't style some padding into the css because the space I need is mid-div - all the posts are in one continuous column div. If anyone has any help for either of these issues I'd appreciate it!
hippievstony.com