Hi,
I have setup a searching routine, based on the record_long display. When a user check a checkbox, thats after a field and the user clicks on the 'submit' button, the script search the db. for matching records, whitch match with the value of the field near the checkbox. What my problem is, I will load one checkbox value, that is 10% lower as the field near, and also another, that is 10% greater. It must feed the searching routine. The values of the fields are 'numer'. I tried it this way, but without succes. Whats wrong???
It stand near the field with has the value '$rec{'Kmstand'}'.
if ($rec{'Kmstand-gt'}) {
$rec{'Kmstand-lt'} = $rec{'Kmstand-gt'} + ($rec{'Kmstand-gt'} / 10) ; }
print qq|
I have setup a searching routine, based on the record_long display. When a user check a checkbox, thats after a field and the user clicks on the 'submit' button, the script search the db. for matching records, whitch match with the value of the field near the checkbox. What my problem is, I will load one checkbox value, that is 10% lower as the field near, and also another, that is 10% greater. It must feed the searching routine. The values of the fields are 'numer'. I tried it this way, but without succes. Whats wrong???
It stand near the field with has the value '$rec{'Kmstand'}'.
Code:
|; if ($rec{'Kmstand-gt'}) {
$rec{'Kmstand-lt'} = $rec{'Kmstand-gt'} + ($rec{'Kmstand-gt'} / 10) ; }
print qq|