在php中没有从数据库中检索输入详细信息

Here is my code for simple register form with include two fields.

index.html:

<form method="post" action="action.php">
                <tr><td>First Name:</td><td> <input type="text" id="fname" name="fname" required /></td></tr>
                <tr><td>Last Name:</td><td> <input type="text" id="lname" name="lname"/></td></tr>
                <tr><td></td><td><input type="submit" value="Register Me!"/></td></tr>
            </form>

action.php:

<?php
include('condb.php');

extract($_POST);
$fname=$_POST['fname'];
$lname=$_POST['lname'];

$que=mysql_query("INSERT INTO croping (fname, lname) VALUES ('$fname', '$lname')") or die("Error msg !");
if($que)
{
    header('Location: data.php?id='.$id.'');
}

?>

data.php:

<?php 
    include ('condb.php');
    $query = mysql_query("select * from croping where id='".$_GET['id']."'");
    $row = mysql_fetch_array($query);
?>
    <body>
        <h3>Employee Detail</h3>
        <p>Emp Name:</p> <?php echo $row['fname'];?>
        <p>LastName:</p> <?php echo $row['lname'];?>
    </body>
<?php ?>

After register , it shows only first name, last name. didn't show that values.

can anybody fix this, thanks in advance..

My page looks like http://s1.postimg.org/8weru4bdb/Untitled_1_copy.png