Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (32 sloc) 968 Bytes
<HTML>
<HEAD>
<TITLE>Open Space.....Connect,Collaborate,Coordinate.....</TITLE>
</HEAD>
<BODY background="1.jpg" bgcolor="red"<BR>>
<?php
$username = $_POST['username'];
$password = $_POST['password'];
$city = $_POST['city'];
$sex = $_POST['sex'];
$bir = $_POST['birthday'];
mysql_connect("localhost","root","")
or die ("Registartion failed");
mysql_select_db("openspace");
$query ="INSERT into signup values ('$_POST[username]','$_POST[password]','$_POST[city]','$_POST[sex]','$_POST[birthday]')";
if(mysql_affected_rows() == 1)
{
echo '<HTML>
<HEAD>
Open Space
</HEAD><br/>
<BODY>
<A href="page1.php">Registered Clicked to Continue</a><br/>
';
}
else
{
echo "Registartion failed";
}
?>
</BODY>
</HTML>