```js
 Enter Where Condition: <input type="text" id="myText">
    <button onclick="myFunction()">Go</button>
    <script type="text/javascript">
    function myFunction($http) {
    var condition = document.getElementById("myText").value;
        $http({

            method: 'POST',
            url: "http://localhost:8080/peter/peter1/where",
            params: {"where":condition},
            headers: {'Content-Type': 'application/json'}

            });
        } 

    <script/>

```

When i tried to debug the above code i am getting an error saying that 
 $http is not a function... In the above code i am getting error 
 saying $http is not a function..please help me in resolving this problem...