48 users online (1 members and 47 guests)  


  Results 1 to 5 of 5

Related

  1. I Don't Want the Page Name to Print!    Forum: HTML Forum
    Replies: 1
  2. Help Creating print.css    Forum: CSS Forum
    Replies: 1
  3. CSS Print stylesheet    Forum: CSS Forum
    Replies: 7
  4. CSS Print    Forum: CSS Forum
    Replies: 2
  5. Want to automatically print    Forum: HTML Forum
    Replies: 1
  1. #1
    zandoval's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2006
    Location
    Bastrop Texas
    Posts
    3

    Print Checked Box Only

    Help - Need to put together a simple page in HTML that will allow only checked boxes to print in one continuous line...

    I have done this before without useing a CGI or PHP and its been a long time sence I have worked in basic HTML and now I just can't get it...

    I am so smart I am stupid... And it just goes to show that you should never throw away your old work....

    Yes even the stuff in CPM ( am I showing my age? )


    Example: An HTML page showing the following

    [ ] Line 1 of many lines
    [ ] Line 2 of many lines
    [ ] Line 3 of many lines
    [ ] Line 4 of many lines
    [ ] Line 5 of many lines
    [ ] Line 6 of many lines

    Example: After marking selected checkboxes

    [ ] Line 1 of many lines
    [x] Line 2 of many lines
    [ ] Line 3 of many lines
    [x] Line 4 of many lines
    [ ] Line 5 of many lines
    [x] Line 6 of many lines

    Example: Then printing in a line only the selected checkboxes

    Line 2 of many lines Line 4 of many lines lines Line 6 of many lines

  2. #2
    ALL's Avatar
    Super Dooper Nerd

    Status
    Offline
    Join Date
    Feb 2005
    Location
    localhost
    Posts
    382

    Re: Print Checked Box Only

    i am not sure what you mean, but to re-create that text version in html is simple:

    HTML Code:
    <input type="checkbox" name="c1" value="Line 1 of many lines"> Line 1 of many lines<br>
    <input type="checkbox" name="c2" value="Line 2 of many lines"> Line 2 of many lines<br>
    <input type="checkbox" name="c3" value="Line 3 of many lines"> Line 3 of many lines<br>
    <input type="checkbox" name="c4" value="Line 4 of many lines"> Line 4 of many lines<br>
    <input type="checkbox" name="c5" value="Line 5 of many lines"> Line 5 of many lines<br>
    <input type="checkbox" name="c6" value="Line 6 of many lines"> Line 6 of many lines

  3. #3
    zandoval's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2006
    Location
    Bastrop Texas
    Posts
    3

    Re: Print Checked Box Only

    Yes - Understood - Now how can I get the browser to print only the checked lines - I know I have done this in Mozilla with a print options statement... Just can't remember

  4. #4
    ALL's Avatar
    Super Dooper Nerd

    Status
    Offline
    Join Date
    Feb 2005
    Location
    localhost
    Posts
    382

    Re: Print Checked Box Only

    you cant... well... usually checkboxes dont post anything unless it is checked.

  5. #5
    zandoval's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2006
    Location
    Bastrop Texas
    Posts
    3

    Re: Print Checked Box Only

    THATS IT - I am having a thought - Print after each checked box no return...



Tags for this Thread