40 users online (0 members and 40 guests)  


  Results 1 to 2 of 2

Related

  1. Css Printing Problem    Forum: CSS Forum
    Replies: 2
  2. Printing    Forum: HTML Forum
    Replies: 0
  3. Printing with CSS    Forum: CSS Forum
    Replies: 3
  4. printing    Forum: CSS Forum
    Replies: 5
  1. #1
    mgn2683's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2007
    Posts
    1

    Printing textarea boxes

    I'm trying to set up a page so that when a user types or inserts text into the textarea, they can print everything within the box, not simply whats on the screen. Is there any script that allows this, or is it simpler to have the print button have a pop up that the user can then print from. I appreciate any help, thanks

  2. #2
    kilza's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2007
    Posts
    5

    Re: Printing textarea boxes

    you would need javascript and php for that.(so the text will popup instantly with click submit)

    here is how you do it without javscript.

    ---form.html---

    Code:
    <form action=action.php method=post>
    <textarea name=text></textarea>
    <input type=submit value=submit>
    </form>
    ---
    ---action.php---

    Code:
    <?php
    echo $_POST['text'];
    ?>
    ---
    Last edited by vinyl-junkie; 12-27-2007 at 06:59 AM. Reason: Added code tags



Tags for this Thread