bumping an old thread.
i wanted to add a link to each post that whenever someone clicks it, it sends the url title and postid to to a different page.
this is what i did :
i added to my postbit legacy template something like this :
<a href="javascript:void(0)" onclick="window.open('someurl.php?postId=$post[postid]&postTitle=$post[title]')">
click
</a>
the problem is that whenever the post title have quotation marks (") or apostrophe (') it mess things up.
do you have any ideas what can i do ?
|