www.webdeveloper.com
Results 1 to 2 of 2

Thread: Setting up a quote in a post reply

  1. #1
    Join Date
    Feb 2012
    Posts
    102

    Exclamation Setting up a quote in a post reply

    Hello,

    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:
    PHP Code:
    <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>&nbsp;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" />
                </form>
    Any ideas would be great. When there are a lot of posts it is a must to be able to quote.

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,637
    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

    eBookworm.us

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles