In my app, I have a form. I want a modal for some seconds after submitting the form and redirect to next page. But I am unable to do this.

> 
> form
> 
> 
> 

```
<form method="post" action="topicadddb.php" >

                <div class="table-responsive table-bordered">
                            <table class="table">

                                <tbody>

                                     <tr>
                                        <td>
                                            <label>TOPIC</label>
                                        </td>
                                        <td>
                                            <input class="form-control" name="txttopicname">
                                        </td>
                                    </tr>

                                    <tr>

                                    <tr>
                                        <td colspan=3><button class="btn btn-success btn-lg btn-block" type="submit" >ADD TOPIC</button></td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
            </form>

```

> 
> topicadddb.php
> 
> 
> 

```
<?php
session_start();

require_once("../../connectdb.php");     

$topicname  = $_POST['txttopicname'];

$s="INSERT INTO topicinfo (topicname,status) VALUES ( UPPER('$topicname'),0)";

//echo $s;

mysqli_query($conn,$s) or die( mysqli_error());
header('Location:topiclistdb.php');   

?>

```

This is my code I want when submit button clicked a modal open for some seconds and redirect to next page. Please help me how I can do that.
Thanks