-2
 <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

Jay Blanchard
  • 33,530
  • 16
  • 73
  • 113
user3630248
  • 11
  • 1
  • 2
  • I am not going to vote this question down , but I think you have a fundamental misunderstanding of the two technologies. I Highly recommend you look into some of the basics of web dev at places like codeschool – cs45977 May 21 '14 at 16:40

2 Answers2

0

Use a form and Post or Get You can also optionally use WebSockets or you can probably use a request to a .php page setup to handle such of another type of request.

Jay
  • 3,178
  • 1
  • 24
  • 37
0

I suggest to create a hidden field and then treat that in your post back or call back

Juanjo
  • 599
  • 8
  • 15