//write.html//////////////////////////////////////
±Û¾²±â
ÀÌ ¸§
À̸ÞÀÏ
ȨÆäÀÌÁö
Á¦ ¸ñ
³» ¿ë
ºñ¹Ð¹øÈ£
   
//write.php////////////////////////////////////// alert('ºñ¾îÀÖ´Â Ç׸ñÀÌ ÀÖ½À´Ï´Ù'); location.href='write.html'; "; exit; } echo "³Ñ¾î¿Â À̸§ : $name
"; echo "³Ñ¾î¿Â À̸ÞÀÏ : $email
"; echo "³Ñ¾î¿Â ȨÆäÀÌÁö : $hpage
"; echo "³Ñ¾î¿Â Á¦¸ñ : $subject
"; echo "³Ñ¾î¿Â ³»¿ë : $content
"; echo "³Ñ¾î¿Â ºñ¹Ð¹øÈ£ : $dbpass
"; $user_ip=getenv("REMOTE_ADDR"); echo "user_ip --- $user_ip
"; include "connect.php"; $query="insert into board1 values(NULL,'$name','$email','$hpage','$subject','$content','$dbpass','$user_ip',now(),0)"; $result=mysql_query($query); if($result){ echo "ÀÔ·Â ¼º°ø"; }else { echo "ÀÔ·Â ½ÇÆÐ"; } ?> //conect.php///////////////////////////////////// //board1db.php/////////////////////////////////// //or.php//////////////////////////////////////// == != $a=0 || 0; $b=0 || 1; $c=1 || 0; $d=1 || 1; echo "a --- $a
"; echo "b --- $b
"; echo "c --- $c
"; echo "d --- $d
"; echo "
======================
"; $a=0 && 0; $b=0 && 1; $c=1 && 0; $d=1 && 1; echo "a --- $a
"; echo "b --- $b
"; echo "c --- $c
"; echo "d --- $d
"; ?>