What I do in situations like this is assign a value to the submit button and then see if it equals.
if($submit == "Submit"){
process data
}
I do see one problem I didn't notice before:
Code:
while($line = mssql_fetch_row($result)); (should be {)
$bc = $line['barcode'];
$sn = $line['serial_number'];
$loc = $line['location'];
$man = $line['manufacturer'];
$mod = $line['model'];
$item = $line['item'];
$it = $line['item_type'];
$pr = $line['price'];
$war = $line['warranty'];
$we = $line['warranty_expiration'];
$cn = $line['contract_number'];
$pn = $line['part_number'];
$dr = $line['date_received'];
$ex = $line['excess'];
$ed = $line['excess_date'];
$xha = $line['xtra_hardware_a'];
$xhb = $line['xtra_hardware_b'];
$xhc = $line['xtra_hardware_c'];
}
Bookmarks