I am new to php and cannot seem to understand the problem in my code:

```
<?php
    require('mysql_connect.php');
    // If the values are posted, insert them into the database.
    if (isset($_POST['username']) && isset($_POST['password'])&& isset($_POST['phone'])){
        $username = $_POST['username'];
        $phone = $_POST['phone'];
        $email = $_POST['email'];
        $password = $_POST['password'];

        $query = "INSERT INTO `user` (username, password, email,phone) VALUES ('$username', '$password', '$email', '$phone')";
        $result = mysql_query($query);
        if($result){
            $msg = "User Created Successfully.";
            }

        echo "
        <script >
        function changeIT() {
        $( '#phone,#reg' ).css('display','inline');
        }
        $(document).ready(changeIT);

        </script>";
        header('Location: http://atestat-cpi.comeze.com/index.html');
     }
?> 

```

As of my understanding of php,this should execute the jquery to show the required elements and then display the index.html with the elements shown.The problem is that when the page is accesed,it displays nothing,just blank window,so I think the jQuery is not executed.Please help.