I am basically creating a registration page.
Tell me where I am wrong in this code.
<?php
session_start();session_destroy();
session_start();
if($_POST["regfname"] && $_POST["reglname"] && $_POST["regcname"] && $_POST["regemail"] && $_POST["regphone"] && $_POST["regwebsite"])
{
if($_POST["regpass"]==$_POST["regcpass"])
{
$servername="localhost";
$username="akshay";
$conn= mysql_connect($servername,$username)or die(mysql_error());
mysql_select_db("akshay",$conn);
$sql="INSERT INTO acts(fname,lname,cname,email,phone,website,password)values('$_POST[regfname]','$_POST[reglname]','$_POST[regcname]','$_POST[regemail]','$_POST[regphone]','$_POST[regwebsite]','$_POST[regpass]');
$result=mysql_query($sql,$conn) or die(mysql_error());
print "<h1>you have registered sucessfully</h1>";
print "<a href='index.php'>go to login page</a>";
}
else print "passwords doesnt match";
}
else print"invaild input data";
?>