Setting up a quote in a post reply
I am in the process of building my own forum. I am nearing the end and am stuck on a major issue. How can I place a quote in the text box of the reply when a user replys to a certain message? I am having no trouble sending the id and the message through $_GET and I tried using echo but nothing is showing up in the text area. Here is my code:
Any ideas would be great. When there are a lot of posts it is a must to be able to quote.
<form action="reply.php" method="post" accept-charset="utf-8" class="">
<h3> Post a Reply:</h3>
<input name="tid" type="hidden" value="<?php $tid ?>" />
<p> Body:<textarea name="body" rows="10" cols="60" class="posttext" value="<?php echo $_GET['body']; ?>" /></textarea></p>
<input name="submit" type="submit" value="Submit!" class="buttonreg" />
Don't use a value attribute, just put the desired output between the <textarea> and </textarea> tags.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)