Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9208499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:37:51+00:00 2026-06-18T00:37:51+00:00

Hi i am having results and its contains a checkbox as <input type=’checkbox’ name=ChkS[]

  • 0

Hi i am having results and its contains a checkbox as <input type='checkbox' name="ChkS[]" value='<? echo $rs->id?>'>

I have a print out list option in the footer as <input type="button" value="Show Printable List" class="butten" onClick="openPrint()">

Its opening the printable list in new pop up window.

function openPrint() {
    window.open("<?= $_SERVER["PHP_SELF"]; ?>?<?=$qstring?>&print=true","","width=1024,height=600,menubar=yes,resizable=yes, scrollbars=yes");
}

I am in need to use the above select checkbox and it should show the selected print list in the pop up ?

I hope it should not be problem any1 to understand it. Any help ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T00:37:52+00:00Added an answer on June 18, 2026 at 12:37 am

    Javascript Modification:

    var s = "";
    function changeval(value) {
        s = value;
    }
    function openPrint() {
        alert(s);
        window.open("<?= $_SERVER["PHP_SELF"]; ?>?<?=$qstring?>&print=true","","width=1024,height=600,menubar=yes,resizable=yes, scrollbars=yes");
    }
    

    HTML Modification:

    <input type='checkbox' name="ChkS[]" value='<? echo $rs->id?>' onchange="changeval(this.value)" />
    

    What I have done?

    1. Created an Global Variable s.

    2. Attached or Bind onchange event on checkbox and set the value of Variable s according.

    3. Now, You have variable s with value, you just have to use it in any function.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I have a dependency IObjectA which contains PropertyA of type IObjectB having a
I am having trouble displaying results recieved from asp.net WebMethod. I have a HTML
I am having some trouble getting expected results out of the zip command. Cases
I have a page which contains two textboxes having jquery datepicker added to them
I am having a problem where I have made a database that contains 7
I have a table that contains index data, with each row having a start
Hi I've just started experimenting with .live and .die and having some great results
I am having some difficulty returning all the results I would expect when leaving
I am having trouble getting well formatted results from my mysql query. Here is
I'm having problem with sorting my query results by the count field. My simplified

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.