Jump to content

Search the Community

Showing results for tags 'display checked items'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 1 result

  1. index.php <tr> <td width="125">Access Permission</td> <td width="10">:</td> <td width="175"> <form name="frmMain" action="" method="post"> <input type="text" name="txtSel" id="txtSel" style="background:#DFDFFF"> <input name="btnSelect" type="button" id="btnSelect" value="Click here ...." onClick="javascript:MM_openBrWindow('access_permission.php','pop', 'scrollbars=no,width=500,height=500,left=750')"> </form> </td> </tr> access_permission.php <script language="javascript"> function selValue() { var val = ''; for(i=1;i<=frmPopup.hdnLine.value;i++) { if(eval("frmPopup.Chk"+i+".checked")==true) { val = val + eval("frmPopup.Chk"+i+".value") + ','; } } window.opener.document.getElementById("txtSel").value = val; window.close(); } </script> <form id="frmPopup" action="" method="post" name="frmPopup"> <?php include "db_conexn.php"; if($_SESSION['designation'] == 'Manager') { $selectQuery = mysql_query("SELECT * FROM navigation"); if(mysql_num_rows($selectQuery)>0){$i=0; echo ' <tr>'; while($row = mysql_fetch_object($selectQuery)){$i++;?> <?php if(($i%2)==0){echo '</tr><tr>';}?> <div style="width:200px; float:left;"><input name="permission[]" type="checkbox" class="validate[minCheckbox[1]] checkbox" id="Chk<?=$i;?>" value="<?php echo $row->id;?>" ><span style="font-size:12px;"> <?php echo $row->name;?></span></div> <?php //if(($i%2)==0){echo ' </tr>';} } } ?> <input name="hdnLine" type="hidden" value="<?=$i;?>"> <br> <input name="btnSelect" type="button" value="Select" onClick="JavaScript:selValue();"> </form> ................................................................................................................................................. Here I can select all check box value from db, Please help me to display checked check boxes for edit page
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.