<?php
$con = mysql_connect("locahost","root","");
if (!$con)
{
	die('could not connect: '.mysql_error());
	
}
mysql_select_db("school2",$con);
$sql="INSERT INTO student2(firstname,lastname,email)
VALUES
('$_post[firstname]','$_post[lastname]','$_post[email]')";
if (!mysql_query($sql,$con))
{
	die('Error: ' .mysql_error());
	echo "your date send";
	mysql_close($con)
	 ?>
	<html>
	<body>
	<h3> <a href ="http://www.yahoo.com"> clic here to download the product</a></h3>
	</body>
	</html>