Issue when posting empty textarea in array - arrays

I've got a dynamic form that can have n amount of rows, so the field names are an array. However I'm running into the problem that when a textarea is empty the value is not submited
This causes a discrepancy in the length of the array data (all array's should be 5 long, however only 2 notes where filled in causing the data to slip into the wrong row)
How can I post it so the resulting array for Note is ['','','','Mr Fields','No 543']?
Here's an example of three of the rows
<tr>
<td><input type="hidden" name="RateId[]" value="23"><input
type="text" name="Date[]" value="2013.08.23"
class="datepicker required hasDatepicker" id="dp1378446864655"></td>
<td>Meeting Room A
<textarea placeholder="Note" name="Note[]"
style="height: 26px;"></textarea></td>
<td class="calc"><input type="number" min="1" name="Count[]"
style="width: 3em" value="1"> x <input type="hidden"
name="Nights[]" value="1">
<div class="pull-right">
IDR <input type="number" min="1" name="Value[]" value="3000000">
</div></td>
</tr>
<tr>
<td><input type="hidden" name="RateId[]" value="22"><input
type="text" name="Date[]" value="2013.08.23"
class="datepicker required hasDatepicker valid" id="dp1378446864653"></td>
<td>Airport drop off
<textarea placeholder="Note" name="Note[]"
style="height: 26px;">Mr Fields</textarea></td>
<td class="calc"><input type="number" min="1" name="Count[]"
style="width: 3em" value="1"> x <input type="hidden"
name="Nights[]" value="1">
<div class="pull-right">
IDR <input type="number" min="1" name="Value[]" value="250000">
</div></td>
</tr>
<tr>
<td><input type="hidden" name="RateId[]" value="26"><input
type="text" name="Date[]" value="2013.08.23"
class="datepicker required hasDatepicker" id="dp1378446864654"></td>
<td>Restaurant Bill
<textarea placeholder="Note" name="Note[]"
style="height: 26px;">No 543</textarea></td>
<td class="calc"><input type="hidden" name="Count[]" value="1"><input
type="hidden" name="Nights[]" value="1">
<div class="pull-right">
IDR <input type="number" min="1" name="Value[]" value="100">
</div></td>
</tr>

Related

I'm rendering a react class Some elements seem to have a problem with closing tags but i made sure there's no unclosed tags in between what can i do?

I'm rendering a react class and i'm butting the HTML in the render function but Some elements seem to have a problem with closing tags as it reports that there is some unclosed tags but i made sure that there's no unclosed tags in between still the problem continues.
i also made sure that the imports are correct and that the render method returns only one element includes all the other elements. How can I solve this?
<div>
<h1 style="text-align: center; margin-top: 10px;margin-bottom: 30px;"><b> Order </b></h1>
<div class="form-group" style="margin-left:25%; margin-right:25%;">
<img style="width: 100%; " />
</div>
<div class="container-fluid">
<h1 style="text-align: center; margin-top: 100px;"></h1>
<form action="/submitOrder" method="POST" onSubmit = {validate()}>
<input type="hidden" name="order[product][name]" />
<input type="hidden" name="order[product][version]" />
<div class="container-fluid">
<div class="bd-example">
<br />
<link rel="stylesheet" href="https://formden.com/static/cdn/bootstrap-iso.css" />
<link rel="stylesheet" href="https://formden.com/static/cdn/font-awesome/4.4.0/css/font-awesome.min.css" />
<div class="form-group" style="margin-left:23%; margin-right:23%;">
<div class="bootstrap-iso">
<div class="container-fluid" style="padding:0px; margin-bottom:15px; ">
<div class="row">
<div class="col-md-12 col-sm-6 col-xs-12">
<label class="control-label " for="date">
Date
</label>
<div class="input-group" >
<div class="input-group-addon">
<i class="fa fa-calendar">
</i>
</div>
<input class="form-control" id="date" name="order[orderStartdate]" placeholder="MM/DD/YYYY" type="text"/>
</div>
</div>
</div>
</div>
</div>
<label class="font-weight-bold" for="Duration">Duration </label>
<input type="text" id="Duration" class="form-control col-md-12" />
</div>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<link rel="stylesheet" href="https://formden.com/static/cdn/bootstrap-iso.css" />
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.4.1/js/bootstrap-datepicker.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.4.1/css/bootstrap-datepicker3.css"/>
</div>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<link rel="stylesheet" href="https://formden.com/static/cdn/bootstrap-iso.css" />
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.4.1/js/bootstrap-datepicker.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.4.1/css/bootstrap-datepicker3.css"/>
<table class="table table-striped">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Plugin name</th>
<th scope="col">Camera resolution</th>
<th scope="col">Number of streams</th>
<th scope="col">CPU cores</th>
<th scope="col">Memory (GB)</th>
<th scope="col">GPU model</th>
<th scope="col">GPU utilization</th>
</tr>
</thead>
<tbody>
<input type="hidden" name="order[product][plugin][][name]" />
<input type="hidden" name="order[product][plugin][][pluginVersion]" />
<tr>
<th scope="row"></th>
<td></td>
<td>720p</td>
<td> <input type="text" class="form-control" id="pluginStreams" placeholder="0" /></td>
<td><input type="text" class="form-control" id="pluginCPU" readonly /></td>
<td> <input type="text" class="form-control" id="pluginMemory" readonly /></td>
<td><input type="text" class="form-control" id="gpuModel" readonly /></td>
<td> <input type="text" class="form-control" id="gpuUtilization" readonly /></td>
</tr>
<tr>
<th scope="row"></th>
<td>Total hardware</td>
<td></td>
<td> <input type="text" class="form-control" id="totalPluginStreams" /></td>
<td><input type="text" class="form-control" id="totalPluginCPU" /></td>
<td> <input type="text" class="form-control" id="totalPluginMemory" /></td>
<td> <input type="text" class="form-control" id="totalGPUUtilization" /></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="container-fluid">
<h1><b>Deployment Requirements</b></h1>
<p> <h2><b>Note: Final hardware cost will include also the following items </b></h2>
<ol type="1">
<b> <li>ATUN master machine</li></b>
<b> <li>Additional hardware cost per each slave machine for operating system and ATUN management</li> </b>
<b><li>The calculations below assume 16 virtual cores slave machines. Other types will be suported later</li></b>
</ol>
</p>
<div class="form-row">
<div class="form-group col-md-2">
<label for="MachineType">Machine type</label>
<input type="text" class="form-control" id="Master" name="masterMachine" value="Master" readonly />
<input type="text" class="form-control" id="Slave" name="slaveMachine" value="Slave" readonly />
</div>
<div class="form-group col-md-2">
<label for="Model">Model</label>
<input type="text" class="form-control" id="Master" name="masterMachine" value="8 cores" readonly />
<input type="text" class="form-control" id="Slave" name="slaveMachine" value="16 cores" readonly />
<select id="mySelect" class="form-control">
<option value="16">16 cores</option>
<option value="32">32 cores</option>
<option value="40">40 cores</option>
</select>
</div>
<div class="form-group col-md-2">
<label for="MachineCount">Machine count</label>
<input type="text" class="form-control" id="MasterCount" name="order[masterMachine][count]" value="1" readonly />
<input type="text" class="form-control" id="totalSlaveMachines" name="order[slaveMachine][count]" value="1" readonly />
</div>
<div class="form-group col-md-2">
<label for="numberOfCPUs">Virtual CPU cores</label>
<input type="text" class="form-control" id="mastertotalCoresUsed" name="order[masterMachine][TotalCores]" value="8" readonly />
<input type="text" class="form-control" id="totalCoresUsed" name="order[slaveMachine][TotalCores]" readonly />
<input type="text" class="form-control" id="totalCoresUsed" value="12" name="data[items][0][name]" />
</div>
<div class="form-group col-md-2">
<label for="numberOfCPUs">Memory (GB)</label>
<input type="text" class="form-control" id="masterTotalMemoryUsed" name="order[masterMachine][TotalMemory]" value="16" readonly />
<input type="text" class="form-control" id="totalMemoryUsed" name="order[slaveMachine][TotalMemory]" readonly />
</div>
<div class="form-group col-md-2">
<label for="numberOfGPUs">Average # GPU</label>
<input type="text" class="form-control" id="masterTotalGPU" name="order[masterMachine][TotalGPU]" value="0" readonly />
<input type="text" class="form-control" id="slaveTotalGPU" name="order[slaveMachine][TotalGPU]" readonly />
</div>
</div>
<div class="form-row">
<div class="form-group col-md-6">
<button type="submit" class="btn btn-primary">Submit order</button>
</div>
</div>
<button class="btn btn-primary"> <i class="fas fa-arrow-alt-circle-left" style="margin-right: 5px;"></i>Back</button>
</form>
</div>
</div>
Try out this, your jsx had some issues:
var NewComponent = React.createClass({
render: function() {
return (
<div>
<h1 style={{textAlign: 'center', marginTop: '10px', marginBottom: '30px'}}><b> Order </b></h1>
<div className="form-group" style={{marginLeft: '25%', marginRight: '25%'}}>
<img style={{width: '100%'}} />
</div>
<div className="container-fluid">
<h1 style={{textAlign: 'center', marginTop: '100px'}} />
<form action="/submitOrder" method="POST" onsubmit="{validate()}">
<input type="hidden" name="order[product][name]" />
<input type="hidden" name="order[product][version]" />
<div className="container-fluid">
<div className="bd-example">
<br />
<link rel="stylesheet" href="https://formden.com/static/cdn/bootstrap-iso.css" />
<link rel="stylesheet" href="https://formden.com/static/cdn/font-awesome/4.4.0/css/font-awesome.min.css" />
<div className="form-group" style={{marginLeft: '23%', marginRight: '23%'}}>
<div className="bootstrap-iso">
<div className="container-fluid" style={{padding: '0px', marginBottom: '15px'}}>
<div className="row">
<div className="col-md-12 col-sm-6 col-xs-12">
<label className="control-label " htmlFor="date">
Date
</label>
<div className="input-group">
<div className="input-group-addon">
<i className="fa fa-calendar">
</i>
</div>
<input className="form-control" id="date" name="order[orderStartdate]" placeholder="MM/DD/YYYY" type="text" />
</div>
</div>
</div>
</div>
</div>
<label className="font-weight-bold" htmlFor="Duration">Duration </label>
<input type="text" id="Duration" className="form-control col-md-12" />
</div>
<link rel="stylesheet" href="https://formden.com/static/cdn/bootstrap-iso.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.4.1/css/bootstrap-datepicker3.css" />
</div>
<link rel="stylesheet" href="https://formden.com/static/cdn/bootstrap-iso.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.4.1/css/bootstrap-datepicker3.css" />
<table className="table table-striped">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Plugin name</th>
<th scope="col">Camera resolution</th>
<th scope="col">Number of streams</th>
<th scope="col">CPU cores</th>
<th scope="col">Memory (GB)</th>
<th scope="col">GPU model</th>
<th scope="col">GPU utilization</th>
</tr>
</thead>
<tbody>
<input type="hidden" name="order[product][plugin][][name]" />
<input type="hidden" name="order[product][plugin][][pluginVersion]" />
<tr>
<th scope="row" />
<td />
<td>720p</td>
<td> <input type="text" className="form-control" id="pluginStreams" placeholder={0} /></td>
<td><input type="text" className="form-control" id="pluginCPU" readOnly /></td>
<td> <input type="text" className="form-control" id="pluginMemory" readOnly /></td>
<td><input type="text" className="form-control" id="gpuModel" readOnly /></td>
<td> <input type="text" className="form-control" id="gpuUtilization" readOnly /></td>
</tr>
<tr>
<th scope="row" />
<td>Total hardware</td>
<td />
<td> <input type="text" className="form-control" id="totalPluginStreams" /></td>
<td><input type="text" className="form-control" id="totalPluginCPU" /></td>
<td> <input type="text" className="form-control" id="totalPluginMemory" /></td>
<td> <input type="text" className="form-control" id="totalGPUUtilization" /></td>
</tr>
</tbody>
</table>
</div>
</form></div>
<div className="container-fluid">
<h1><b>Deployment Requirements</b></h1>
<p> </p><h2><b>Note: Final hardware cost will include also the following items </b></h2>
<ol type={1}>
<b> <li>ATUN master machine</li></b>
<b> <li>Additional hardware cost per each slave machine for operating system and ATUN management</li> </b>
<b><li>The calculations below assume 16 virtual cores slave machines. Other types will be suported later</li></b>
</ol>
<p />
<div className="form-row">
<div className="form-group col-md-2">
<label htmlFor="MachineType">Machine type</label>
<input type="text" className="form-control" id="Master" name="masterMachine" defaultValue="Master" readOnly />
<input type="text" className="form-control" id="Slave" name="slaveMachine" defaultValue="Slave" readOnly />
</div>
<div className="form-group col-md-2">
<label htmlFor="Model">Model</label>
<input type="text" className="form-control" id="Master" name="masterMachine" defaultValue="8 cores" readOnly />
<input type="text" className="form-control" id="Slave" name="slaveMachine" defaultValue="16 cores" readOnly />
<select id="mySelect" className="form-control">
<option value={16}>16 cores</option>
<option value={32}>32 cores</option>
<option value={40}>40 cores</option>
</select>
</div>
<div className="form-group col-md-2">
<label htmlFor="MachineCount">Machine count</label>
<input type="text" className="form-control" id="MasterCount" name="order[masterMachine][count]" defaultValue={1} readOnly />
<input type="text" className="form-control" id="totalSlaveMachines" name="order[slaveMachine][count]" defaultValue={1} readOnly />
</div>
<div className="form-group col-md-2">
<label htmlFor="numberOfCPUs">Virtual CPU cores</label>
<input type="text" className="form-control" id="mastertotalCoresUsed" name="order[masterMachine][TotalCores]" defaultValue={8} readOnly />
<input type="text" className="form-control" id="totalCoresUsed" name="order[slaveMachine][TotalCores]" readOnly />
<input type="text" className="form-control" id="totalCoresUsed" defaultValue={12} name="data[items][0][name]" />
</div>
<div className="form-group col-md-2">
<label htmlFor="numberOfCPUs">Memory (GB)</label>
<input type="text" className="form-control" id="masterTotalMemoryUsed" name="order[masterMachine][TotalMemory]" defaultValue={16} readOnly />
<input type="text" className="form-control" id="totalMemoryUsed" name="order[slaveMachine][TotalMemory]" readOnly />
</div>
<div className="form-group col-md-2">
<label htmlFor="numberOfGPUs">Average # GPU</label>
<input type="text" className="form-control" id="masterTotalGPU" name="order[masterMachine][TotalGPU]" defaultValue={0} readOnly />
<input type="text" className="form-control" id="slaveTotalGPU" name="order[slaveMachine][TotalGPU]" readOnly />
</div>
</div>
<div className="form-row">
<div className="form-group col-md-6">
<button type="submit" className="btn btn-primary">Submit order</button>
</div>
</div>
<button className="btn btn-primary"> <i className="fas fa-arrow-alt-circle-left" style={{marginRight: '5px'}} />Back</button>
</div>
</div>
);
}
});
You have closed a div, parent of form, before it closes. Check your code, collapse things to help you see more clearly.

How to validate template driven form inside table with different fields?

In my ionic-angular application I am using Template driven forms, When I submit the form without touching the input fields it should display the error message, but in this case I am not able to display the error message in the span.
You can see the comments in which the error-message is written.
How do I validate this form?
Page.html
<form (ngSubmit)="submitForm()" #form="ngForm">
<table>
<tr>
<td>
<ion-input type="text" #c1 [(ngModel)]="c" name="c" required>
</td>
<td>
<ion-input type="text" #c2 [(ngModel)]="d" name="d" required>
</td>
</tr>
</table>
<span *ngIf="c1.pristine && c2.pristine && form.submitted">Plese enter codes</span> //error-message is not printing.
<button type="submit">Submit</button>
</form>
Try Below code.
<form (ngSubmit)="submitForm()" #form="ngForm" novalidate>
<table>
<tr>
<td>
<ion-input type="text" [(ngModel)]="c" name="c" id="c1" #c1="ngModel" required>
<div [hidden]="!(c1.invalid && c1.touched)">Invalid.</div>
</td>
<td>
<ion-input type="text" [(ngModel)]="d" name="d" id="c2" #c1="ngModel" required>
<div [hidden]="!(c2.invalid && c2.touched)">Invalid.</div>
</td>
</tr></table><button type="submit" [disabled]="!form.form.valid">Submit</button></form>

Modify model on change of input value inside ng-repeat

I have a table where I list some products with some inputs, basically what I want is to change an input value when another changes, here's the <tr>:
<tr ng-repeat="bought_product in vm.bought_products track by bought_product.id">
<td>
{{ bought_product.name }}
</td>
<td>
<input type="number" class="form-control"
min="1" max="1000" placeholder="#"
ng-model="bought_product.quantity">
</td>
<td>
<div class="input-group">
<span class="input-group-addon">$</span>
<!-- This is the input where I'll insert a price -->
<input type="number" class="form-control no-spin"
min="1" max="1000" placeholder="#" ng-change="vm.calculateVatPrice(bought_product.price)"
ng-model="bought_product.price">
</div>
</td>
<td>
<div class="input-group">
<span class="input-group-addon">$</span>
<!-- This input will automatically be filled -->
<input type="number" class="form-control no-spin"
min="1" max="1000" placeholder="#"
ng-model="bought_product.vat_price">
</div>
</td>
</tr>
You will have to replace your
ng-change="vm.calculateVatPrice(bought_product.price)"
by
ng-change="vm.calculateVatPrice(bought_product)"
and inside your vm.calculateVatPrice function you will have to calculate and set the vat_price like this
calculateVatPrice = function (product) {
product.vat_price = product.price * 1.18;
}
Of course you have to replace this by your actual business logic for calculating the vat-price.
So the trick is to hand over the reference to the object of the product and update the value accordingly in place.

AngularJS Apply filter to all inputs

Is there a way to apply a filter to all inputs or css-syntax selectable set of inputs? I have a lot of inputs and I am trying to add the filter number to each of them.
My current HTML
<table class="table">
<tbody>
<tr>
<td><input type="text" ng-model="value" /></td>
<td><input type="text" ng-model="value" /></td>
<td><input type="text" ng-model="value" /></td>
<td><input type="text" ng-model="value" /></td>
<td><input type="text" ng-model="value" /></td>
</tr>
<tr>
<td><input type="text" ng-model="value" /></td>
<td><input type="text" ng-model="value" /></td>
<td><input type="text" ng-model="value" /></td>
<td><input type="text" ng-model="value" /></td>
<td><input type="text" ng-model="value" /></td>
</tr>
//many more inputs
</tbody>
</table>
To clarify:
I'd like to change
<input type="text" ng-model="value" />
To something with the same result as (without adding the filter manually to each input):
<input type="text" ng-model="value | number:2" />
take a look at this resource - https://docs.angularjs.org/api/ng/input/input%5Bnumber%5D
I would imagine something like this is what you are looking for.
<input type="number" ng-model="value" max="2" min="0" />
If you want to access this input fields validation, you need to wrap it inside a form.
At the bottom of the page that I sent you there is good example

How to Save Multiple Check-boxes data to database?

I am not an expert so I'd really appreciate if you are real specific on your answers.
I have this registration form that has a section with lots of check-boxes, and I wondering what the best way is to save this in the database. I am not sure if all values should go to a single column, or If I should create a different table only for this section of my registration form. It's also important to take into account that I will later need to pull all this data from the database and to show it in the "admin back-end" where it would be available for edition to update the database. Below you can see part of the html code for the section containing the check-boxes.
<p>4) Please select only the product(s) you are interested in. (Anticipated purchase amounts for the quarter.)</p>
<table cellpadding="15" >
<tbody>
<tr>
<th>Handbags</th>
<th>Fashion Jewelry</th>
<th>Watches</th>
<th>Crystal Travel Jewelry</th>
<th>Fine Jewelry</th>
</tr>
<tr>
<td>
<input type="checkbox" name="pro_amount[]" value="1" />$2500+ </br>
<input type="checkbox" name="pro_amount[]" value="2" />$1000-$2500 </br>
<input type="checkbox" name="pro_amount[]" value="3" />Up to $1000 </br>
</td>
<td>
<input type="checkbox" name="pro_amount[]" value="4" />$2500+ </br>
<input type="checkbox" name="pro_amount[]" value="5" />$1000-$2500 </br>
<input type="checkbox" name="pro_amount[]" value="6" />Up to $1000 </br>
<td>
<input type="checkbox" name="pro_amount[]" value="7" />$2500+ </br>
<input type="checkbox" name="pro_amount[]" value="8" />$1000-$2500 </br>
<input type="checkbox" name="pro_amount[]" value="9" />Up to $1000 </br>
<td>
<input type="checkbox" name="pro_amount[]" value="10" />$2500+ </br>
<input type="checkbox" name="pro_amount[]" value="11" />$1000-$2500 </br>
<input type="checkbox" name="pro_amount[]" value="12" />Up to $1000 </br>
<td>
<input type="checkbox" name="pro_amount[]" value="13" />$2500+ </br>
<input type="checkbox" name="pro_amount[]" value="14" />$1000-$2500 </br>
<input type="checkbox" name="pro_amount[]" value="15" />Up to $1000 </br>
</tr>
</tbody>
</table>
<p>5) What are the average retail price points for each of the following items? (Check only those that apply.)</p>
<table cellpadding="15" >
<tbody>
<tr>
<th>Handbags</th>
<th>Jewelry</th>
<th>Watches</th>
</tr>
<tr>
<td>
<input type="checkbox" name="av_rtp[]" value="1" />$125 or greater<br>
<input type="checkbox" name="av_rtp[]" value="2" />$75</br>
<input type="checkbox" name="av_rtp[]" value="3" /> $40</br>
</td>
<td>
<input type="checkbox" name="av_rtp[]" value="4" />$125 or greater<br>
<input type="checkbox" name="av_rtp[]" value="5" />$75</br>
<input type="checkbox" name="av_rtp[]" value="6" /> $40</br>
<td>
<input type="checkbox" name="av_rtp[]" value="7" />$125 or greater<br>
<input type="checkbox" name="av_rtp[]" value="8" />$75</br>
<input type="checkbox" name="av_rtp[]" value="9" /> $40</br>
</tr>
</tbody>
</table>
Jsfiddle Demo if that helps.!
Thanks a lot in advance for any help you can provide.
It is an extremely poor practice to store a delimited list of data in one column. It creates querying issues (and performance issues when you have to query using a nonsargable where clause). Create a separate table.
You have a couple options…
1)Allowing one box to be checked per category:
In this case, it would be better if you changed your checkboxes to radio buttons that way it is easier to keep only one checked at one time and you will only have to store the value of the one button selected in one column of your database.
2)Allowing multiple boxes to be checked per category:
In this case, you can keep your checkboxes and would suggest storing the total value of the checkboxes in one column to keep the load on your database down. However, this means that you need to include some form of script reverse the addition you did before storing the info in your database. You could do this by having the values of the three check boxes in each category be 1, 10 and 100 so that you could easily check which ones were checked by using a series of % operations.
<table cellpadding="15" >
<tbody>
<tr>
<th>Handbags</th>
<th>Jewelry</th>
<th>Watches</th>
</tr>
<tr>
<td>
<input type="checkbox" name="av_rtp[]1" value="1" />$125 or greater<br />
<input type="checkbox" name="av_rtp[]1" value="10" />$75<br />
<input type="checkbox" name="av_rtp[]1" value="100" /> $40<br />
</td>
<td>
<input type="checkbox" name="av_rtp[]2" value="1" />$125 or greater<br />
<input type="checkbox" name="av_rtp[]2" value="10" />$75<br />
<input type="checkbox" name="av_rtp[]2" value="100" /> $40<br />
<td>
<input type="checkbox" name="av_rtp[]3" value="1" />$125 or greater<br />
<input type="checkbox" name="av_rtp[]3" value="10" />$75<br />
<input type="checkbox" name="av_rtp[]3" value="100" /> $40<br />
</tr>
</tbody>
</table>
*Notice how each group has a different name, to keep them separated. You should do this whether you use radio buttons or checkboxes since they mean different things.
Let me know if this helps or not.

Resources