Welcome to Discuss Everything Forums...

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.


 

Reply to Thread

Post a reply to the thread: Select value from drop down list and display in text area, PHP.?

Your Message

Click here to log in

What is the sum of 36 and 12

 
 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Rate Thread

You may rate this thread from 1-star (Terrible) to 5-stars (Excellent) if you wish to do so.

Topic Review (Newest First)

  • 12-29-2012, 10:10 AM
    nurul

    Select value from drop down list and display in text area, PHP.?

    Im trying to get data from database after drop down list value is selected and display it in a text area.
    I have this for now....

    <div id="getFb">
    <select name="natureOffb" class="selection">
    <option value="Feedback">Feedback</option>
    <option value="Enquiry">Enquiry</option>
    <option value="Compliment">Compliment</option>

    <?php
    $sql=mysqli_query($mysqli, "SELECT natureOffb From forum");
    while($row = mysqli_fetch_array($sql)){

    }
    ?>

    </select>
    <br>
    <textarea class="display"></textarea>
    <textarea class="display"></textarea>
    <textarea class="display"></textarea>
    <textarea class="display"></textarea>
    </div>

    After that, Im lost/stucked. Help?

    Thank you!

Posting Permissions

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