Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jan 2010
    Posts
    18
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Get php from database into textbox

    Hi,
    I have created an edit page that gets the data from the database and fills in the fields with what is there before editing.
    I want the content to be included as well i am using
    PHP Code:
    <?php echo $content ?>
    Which fills in the required fields with the data I am putting these php tags in the value field, when I put it in the textarea value field it doesn't return the content? what should I do to return the content
    The sql type for content is text all the other fields are varchar, does this make a difference.

  • #2
    Senior Coder
    Join Date
    Apr 2010
    Posts
    1,555
    Thanks
    75
    Thanked 105 Times in 104 Posts
    How are you putting the coding into the textbox? can you show us?
    Been a sign maker for 7 years. My business:
    American Made Signs

  • #3
    Regular Coder
    Join Date
    Jan 2012
    Posts
    271
    Thanks
    2
    Thanked 65 Times in 65 Posts
    It needs to be:

    Code:
    <input type="text" value="<?php echo $content;?>">


  •  

    Posting Permissions

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