Page 114 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 114
}
$query = "insert into member(name,user_id,pw,emaill)
values('$name','$user_id','$pw','$emaill')";
mysql_query($query, $connect);
mysql_close($connect);
?>
- memberSave.php
<script type="text/javascript">
con=confirm("SIGNUP SUCCESS")
if(con==true)
{
location.href="login.php";
}
else
{
location.href="register";
}
</script>
<?php
$user_id = $_POST["user_id"];
$pw = $_POST["pw"];
$name = $_POST["name"];
$emaill = $_POST["emaill"];
$connect = mysql_connect("localhost","root","pi");
mysql_select_db("test");
$query = "insert into member(name,user_id,pw,emaill)
values('$name','$user_id','$pw','$emaill')";
mysql_query($query, $connect);
mysql_close($connect);
echo $_POST["user_id"];
?>
<script>
</script>
- 107 -