I want to add a text box to the end of my post where the HTML needed to link back to my post is displayed and people would only need it to copy and paste it. I am thinking of using the below code, would this work, because I copied it from somewhere? Also, how can I get the URL of the current post so I wouldn't have to edit it each time? <div align="center"><strong><font color="#FF5EAA">Link to this Story</font></strong><center><br /> <form method="POST" action="#" wrap="virtual"> <textarea rows="4" name="link" cols="50"><a href="URL OF CURRENT POST"><?php the_title(); ?></a></textarea> </form> </div> PHP:
Try: <div align="center"><strong><font color="#FF5EAA">Link to this Story</font></strong><center><br /> <textarea rows="4" name="link" cols="50"> <a href="<?php echo 'http://'.$_SERVER["HTTP_HOST"].$_SERVER["PHP_SELF"]; ?>"><?php the_title(); ?></a> </textarea> </div> PHP: You don't need or want the form tag, just use the textarea.