<script>
function myHandler(){
var idproduct = myHandler.caller.arguments[0].target.id;
document.getElementById("product").value = idproduct;
}
</script>
<input class="form-control" id="product" name="view" type="text" disabled " />
<?php $product_view = X ?>
Some one know what can I add on my javascript so I can send the variable "idproduct" to product_view variable