¾Æ·¡ if ¹®¿¡¼ »èÁ¦Å°°¡ µ¿ÀÛ¾ÈÇÏ°í °è¼Ó ½Å±Ôµî·ÏµÇ´Âµ¥ ÇÁ·Î±×·¥Á» ºÁÁÖ¼¼¿ä
»ý·«...
function inputs(){
<? if(strlen($tjumin) == 13){ $tjumin = substr($tjumin,0,6)."-".substr($tjumin,6,7); } ?>
if(document.frm_il.skk.value =="»èÁ¦")
<? { $resultd = mysql_query("delete from `hilyongds` where `jumin` = '$tjumin';");
} ?>
elseif(document.frm_il.sn.value =="½Å±Ôµî·Ï")
<? {$resultd = mysql_query("delete from `hilyongds` where `jumin` = '$tjumin';");
if (strlen($tjumin) == 14) { $results = mysql_query("insert into `hilyongds` (`saup`,`nam`,`jumin`,`juso`,`gubun`) values ('$name','$tname','$tjumin','$tjuso',2);");
} } ?> return false;}
»ý·«...
<table>
<tr>
<td width='55' align='right'><p><b><span style="font-size:10pt;">ÀÌ ¸§</span></p></b></td>
<td width='58' align='right'><p><b><span style="font-size:10pt;">ÁֹιøÈ£</span></p></b></td>
<td width='50' align='right'><p><b><span style="font-size:10pt;">¿¬¶ôó</span></p></b></td>
</tr>
<tr>
<td width='100' align='center'><input size = 10 type="text" id="tname" name="tname" value=<?echo("\"$unam\"");?> onkeypress="move(event,'tjumin');" /> </td>
<td width='100' align='center'><input size = 13 type="text" id="tjumin" name="tjumin" value=<?echo("\"$ujumin\"");?> onkeypress="move(event,'ujuso');" /> </td>
<td width='100' align='center'><input size = 15 type="text" id="tjuso" name="tjuso" value=<?echo("\"$ujuso\"");?> onkeypress="move(event,'sn');" /> </td>
</tr>
<td width='50' align='center'><input type="submit" name="sn" value="½Å±Ôµî·Ï" OnClick="inputs();">
</td>
<td width='50' align='center'><input type="submit" name="skk" value="»èÁ¦" OnClick="inputs();">
</td>
</tr>
</table>