PHP Register.php
<p>Can anyone help me with this code? Everytime I want to try out my <code>registerform.php</code>, I don't get redirected to the successful message page. The browsers said that the link was broken. I'm not getting any errors.</p>

<h3>registerform.php</h3>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
&lt;title&gt;register&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;FORM ACTION="register.php" METHOD="POST"&gt;
&lt;h1&gt;welcome to the registration page&lt;/h1&gt;
please input the registration details to create an account here&lt;br&gt;
&lt;table border="2"&gt;
&lt;tr&gt;
&lt;td&gt;User Name :&lt;/td&gt;&lt;td&gt;&lt;input name="regname" type="text" size"20"&gt;&lt;/input&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;email :&lt;/td&gt;&lt;td&gt;&lt;input name="regemail" type="text" size"20"&gt;&lt;/input&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;password :&lt;/td&gt;&lt;td&gt;&lt;input name="regpass1" type="password" size"20"&gt;&lt;/input&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;retype password :&lt;/td&gt;&lt;td&gt;&lt;input name="regpass2" type="password" size"20"&gt;&lt;/input&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
 &lt;input type="submit" value="register me!"&gt;&lt;/input&gt;
&lt;/FORM&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<h3>register.php</h3>

<pre><code>&lt;?php

 session_start();
if($_GET["regname"] &amp;&amp; $_GET["regemail"] &amp;&amp; $_GET["regpass1"] &amp;&amp; $_GET["regpass2"] )
{
    if($_GET["regpass1"]==$_GET["regpass2"])
    {
    $servername="localhost";
    $username="root";
    $password="";
    $conn=  mysql_connect($servername,$username,$password)or die(mysql_error());
    mysql_select_db("tweetball",$conn);
    $sql="insert into users (UserName,UserEmail,Password)values('$_GET[regname]','$_GET[regemail]','$_GET[regpass1]')";
    $result=mysql_query($sql,$conn) or die(mysql_error());      
    print "&lt;h1&gt;you have registered sucessfully&lt;/h1&gt;";

    print "&lt;a href='main_login.php'&gt;go to login page&lt;/a&gt;";
    }
    else print "passwords doesnt match";
}
else print"invaild input data";

?&gt;
</code></pre>
