I added the code but it dosent start files with .php extension only html
any ides Here is the code im trying to run..
<html>
<B>
<BODY BGCOLOR="#50538D" TOPMARGIN=0 LEFTMARGIN=0 link=black>
<FONT COLOR='black'>Welcome to members registration</FONT></B>
<body>
<?php
// display form
?>
<form method="post" action="<Insert.php">
<B>First name :</B><FONT COLOR='#50538D'></FONT><input type="Text" name="firstname"><br>
<B>Last name :</B><FONT COLOR='#50538D'>¨.</FONT><input type="Text" name="lastname">
<br><BR>
<B>E-mail :</B><FONT COLOR='#50538D'>_____.</FONT><input type="Text" name="email">
<FONT COLOR='#50538D'>___</FONT><input type="Submit" name="submit" value="Submit Registration">
</form>
<?php
}
else{
$submit=$POST['submit'];
$firstname=$POST['firstname'];
$lastname=$POST['lastname'];
$email= $POST['email'];
if ($submit){
// process form
$con=mysql_connect("localhost","****","****") or die ("not connected");
mysql_select_db("Flameline",$con);
$query="INSERT INTO table_name(fornamn,efternamn,epost) values ('$firstname', '$lastname', '$email')";
$result = mysql_query($query);
echo "First name: $firstname Last name:$lastname e-mail:$email";
} // end if
?>
</body>
</html>😕