I am working on one project right now and got stuck at one problem. I am trying code below....

`<button onclick = 'Remove(<?php echo $uid ?>,<?php echo $name ?>,<?php echo $total ?>)' type="submit">Remove</button>`

This is i am using to pass the values to php function and below code is function in php.

```
function Remove($id,$name,$total){
        include('dbconnect.php');
        $q = "DELETE FROM `cart` WHERE `uid` = $id AND `Name`= '$name'";
        $r = mysqli_query($connect, $q);
        if($r == TRUE){
        Updatedcart($id,$total);
        }
   }

```

Can please anyone help me with this problem.....