user registration
<p>hey this is my user registration form (register_hirer.php) but its not working. its giving a parse error on line after: if (isset($_POST['submit']) which is just has a {.</p>

<pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;

&lt;html&gt;
&lt;head&gt;
&lt;title&gt;The Freelance World&lt;/title&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
&lt;body&gt;
&lt;?php

include"include/connection.php";
if (isset($_POST['submit'])
{

mysql_real_escape_string($_POST['username']);
$checkusername=mysql_query("SELECT * FROM employer WHERE eusername='{$_POST['username']}'");

    if (mysql_num_rows($checkusername)==1)
    {
        echo "username already exist";
    }
    else
    {
        $query = "insert into employer(efname,elname,egender,eemail,eusername,epwd,eadd,ephone,ecity,ecountry) values ('".$_POST['first_name']."','".$_POST['last_name']."','".$_POST['gender']."','".$_POST['email']."','".$_POST['username']."','".$_POST['password']."','".$_POST['address']."','".$_POST['phone']."','".$_POST['city']."','".$_POST['country']."')";

       $result = mysql_query($query) or die (mysql_error());

      echo " Thanks for registration";
 }
}       

?&gt;
&lt;form name="register_hirer" method="post" action="register_hirer.php" &gt;
              &lt;pre&gt;&lt;strong&gt;First Name&lt;/strong&gt;         &lt;input type="text" name="first_name" &gt;               &lt;/pre&gt;
              &lt;pre&gt;&lt;strong&gt;Last Name   &lt;/strong&gt;       &lt;input type="text" name="last_name"&gt;               &lt;/pre&gt;
              &lt;pre&gt;&lt;strong&gt;Gender   &lt;/strong&gt;          &lt;input type="radio" name="gender" &gt; Male  &lt;input type="radio" name="gender" &gt; Female &lt;/pre&gt;
              &lt;pre&gt;&lt;strong&gt;Email  &lt;/strong&gt;            &lt;input type="text" name="email"&gt;               &lt;/pre&gt;
              &lt;pre&gt;&lt;strong&gt;User Name &lt;/strong&gt;         &lt;input name="username" type="text" maxlength="10"&gt;               &lt;/pre&gt;
              &lt;pre&gt;&lt;strong&gt;Password    &lt;/strong&gt;       &lt;input type="password" name="password"&gt;   

&lt;strong&gt;
Postal Address  &lt;/strong&gt;   &lt;input type="text" name="address"&gt;   &lt;/pre&gt;
              &lt;pre&gt;&lt;strong&gt;Phone&lt;/strong&gt;              &lt;input type="text" name="phone"&gt;               &lt;/pre&gt;
              &lt;pre&gt;&lt;strong&gt;City   &lt;/strong&gt;            &lt;input type="text" name="city"&gt;               &lt;/pre&gt;
              &lt;pre&gt;&lt;strong&gt;Country       &lt;/strong&gt;     &lt;select name="country"&gt;&lt;option selected&gt;please select your country&lt;/option&gt;&lt;option&gt;Pakistan&lt;/option&gt;&lt;option&gt;US&lt;/option&gt;&lt;/select&gt;     

                      &lt;input type="submit" name="Submit" value="Submit"&gt;         &lt;/pre&gt;
            &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
