php check box selection
Posted
by DAFFODIL
on Stack Overflow
See other posts from Stack Overflow
or by DAFFODIL
Published on 2010-06-01T16:40:52Z
Indexed on
2010/06/01
16:43 UTC
Read the original article
Hit count: 227
php
I have a form in which data fro back end will be listed out in table.There will a chk box at beginning of each row. For eg,if there are 10 items and ,i need only two items,i ii chk in check box,when i press print it should be passed to print page. Mates thnx in advance.
mysql_select_db("form1", $con);
error_reporting(E_ALL ^ E_NOTICE); $nam=$_REQUEST['select1'];
$row=mysql_query("select * from inv where name='$nam'"); while($row1=mysql_fetch_array($row)) { $Name=$row1['Name']; $Address =$row1['Address']; $City=$row1['City']; $Pincode=$row1['Pincode']; $No=$row1['No']; $Date=$row1['Date']; $DCNo=$row1['DCNo']; $DcDate=$row1['DcDate']; $YourOrderNo=$row1['YourOrderNo']; $OrderDate=$row1['OrderDate']; $VendorCode=$row1['VendorCode']; $SNo=$row1['SNo']; $descofgoods=$row1['descofgoods']; $Qty=$row1['Qty']; $Rate=$row1['Rate']; $Amount=$row1['Amount']; }
?>
Untitled Document
function ram(id) { var q=document.getElementById('qty_'+id).value; var r=document.getElementById('rate_'+id).value; document.getElementById('amt_'+id).value=q*r; } function g() { form1.submit(); } Name select "> Address City ' /> Pincode '> No ' readonly="" /> Date ' readonly="" /> DCNo ' readonly="" /> DcDate: ' /> YourOrderNo ' readonly="" /> OrderDate ' readonly="" /> VendorCode ' readonly="" /> SNO DESCRIPTION QUANTITY RATE/UNIT AMOUNT ' readonly=""/> ' /> "/> ' id="rate_" onclick="ram('')";> "/> ">Print
© Stack Overflow or respective owner