<?php
header("content-type:text/html;charset=gb2312");
$conn=mysqli_connect("locallost","root","root","study");
mysqli_set_charset($conn,"utf-8");
if($conn){
switch($_GET["action"]){
case 'add';
$name=$_POST['name '];
$sex=$_POST['sex'];
$age=$_POST['age'];
$class=$_POST['class'];
$sql=" 삽입하다 stu(이름,섹스,나이,클래스)values('$name','$sex','$age','$class')";
$rw=mysqli_query($conn,$sql);
if($rw>0){
echo "