My first PHP and AJAX code
===

This is my first implementation of php and ajax but i am having a trouble with output, please check

    index.php
    <html>
        <head>
            <script type="text/javascript">
                var req = new XMLHttpRequest();
                function send1()
                {
                    req.open("GET", "process.php?q=hello", true);
                    req.send();         
                    alert(req.responseText);      
                }
                
                        
                    
        
            </script>
    
        </head>
    
        <textarea rows="20" cols="30" id="chatbox"></textarea>
        <br>
        <textarea rows="1" cols="30"></textarea>
        <br>
        <button onclick=send1()>send</button>
    
    </html>

    process.php
    <?php
    $new= $_GET['q'];
    echo $new;
    ?>

This should give me hello in a alertbox why it isn't?