I had a from and it's had a dynamic table input fields and other one or more inputs also. When I submit the above I had explained from I want to insert into a table that I got from dynamic tables and I want to insert other input result to another table. How I can handle for that? Please see my code at the bellow.
<html>
<head>
<title>Create</title>
{{ HTML::style('css/bootstrap.3.0.0.css') }}
<script src="/js/jquery-1.7.1.js"></script>
<script type="text/javascript">
var current_counter = 0;
$(document).ready(function() {
// When User Click And New Row
$('#add-new-row').on('click',function(){
current_counter ++;
var newrow = $('<tr><td><input type="text" name="product[0]qty[' + current_counter +']"></td><td><input type="text" name="product[0]item[' + current_counter +']"></td><td><input type="text" name="product[0]amount[' + current_counter +']"></td></tr>');
$('#row_container').append(newrow);
});
});
</script>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-12">
<h1>Add New Order</h1>
</div>
</div>
<div class="row">
<div class="col-md-12 col-md-offset-10">
<button type="button" class="btn btn-primary" id="add-new-row">Add New Row</button>
</div>
<hr>
<div class="col-md-12">
{{ Form::open(array('url' => '/create', 'role' => 'form')) }}
<table class="table table-bordered">
<thead>
<tr>
<th><h4>QTY</h4></th>
<th><h4>ITEM</h4></th>
<th><h4>Amount</h4></th>
</tr>
</thead>
<tbody id='row_container'>
</tbody>
</table>
<div class="form-group">
<label for="discount">Discount</label>
<input type="text" class="form-control" name="discount" id="discount" placeholder="Discount">
</div>
<button type="submit" class="btn btn-primary">Submit</button>
<a href="{{ URL::to('/')}}"><button type="button" class="btn btn-danger">Cancel</button></a>
{{ Form::close() }}
</div>
</div>
</div>
</body>
</html>