µî·ÏÀÏ | 2007-02-01 15:52:19 | Á¶È¸¼ö | 184 |
ÀÛ¼ºÀÚ | yun0215 | µµ¸ÞÀÎ | japan.woto.net/ |
Á¦¸ñ | formÀÌ ±×·¡µÎ ¾ÈµÇ´Âµ¥¿ä. -_-; | ||
¾Æ·¡ÀÇ ±ÛÀ» ¾´ »ç¶÷Àä. ¸»¾¸ÇϽŴë·Î Çصµ ¾ÈµË´Ï´Ù. ÀúµÎ Àü»êÂÊ¿¡¼ Àü»ê¹äÀ» ¸ÔÀºÁö 8³âÀ̳ª µÇ¾úÁö¸¸ ¿Ö ¾ÈµÇ´ÂÁö ÀüÇô °¨ÀÌ ¾È ¿É´Ï´Ù. phpinfo(); ¿¡¼µµ ¾ÈµÇ¸é ¼³Á¤Å¿À̶ó°í´Â ÇÏ°ÚÁö¸¸ phpinfo();¿¡¼´Â °ªÀÌ Àß ³Ñ¾î¿Â°Í °°´õ¶ó±¸¿ä. ±Ùµ¥ ¿Ö echo·Î ºÒ·¯¿À¸é ¾È³ª¿Ã±î¿ä? ÀÌ°Å ÇØ°á¸øÇØÁֽŴٸé ȯºÒÇØÁÖ¼¼¿ä. Â÷¶ó¸® ´Ù¸¥È¸»ç²¨¸¦ ¾µ²®´Ï´Ù. php4 Áö¿øÀÌ µÈ´Ù¸é¼ formÀÌ ¾ÈµÈ´Ù´Â°Ô ¸»ÀÌ µË´Ï±î? formÀÌ ¾ÈµÇ¸é php·Î ÄÚµùÀ» ¾î¶»°ÔÇϳª¿ä. ±×¸®°í ±Û·Î ¼³¸íÇϱ⠾î·Á¿îµ¥ Â÷¶ó¸® ÀüÈÇÑÅë ÁÖ½Ã´Â°Ô ¾î¶§¿ä? ¡Ø ¾Æ·¡ÀÇ ³»¿ëÀº Á¦°¡ ÄÚµùÇÑ °£´ÜÇÑ form üũÀÔ´Ï´Ù. º¸´Â¹Ù¿Í °°ÀÌ ¾ÆÁÖ°£´ÜÇؼ üũÇÒ °ÍÀÌ°í ¹¹°í ¾ø½À´Ï´Ù. ±×Àú form¿¡¼ °ªÀ» ¹Þ¾Æ¼ ³Ñ°ÜÁÖ°í ±×°É echo·Î »Ñ¸®´Â °ÍÀε¥ °á·ÐÀº º¯¼ö°ªÀÌ ¾È³Ñ¾î¿Í¼ echo·Î Ãâ·ÂÀ» Çصµ ¾Æ¹«°Íµµ ¾È ³ª¿É´Ï´Ù. ********************** up.html *************************** <? include("con.inc"); include("idchk.inc"); $qry = "select * from exam"; $result = mysql_query($qry,$db); $cnt = mysql_num_rows($result); $cnt2 = $cnt + 1; ?> <html> <head></head> <body> <form action="b.php" method="post"> <li>Á¤´ä : <input type="text" name="v_dap"> <input type="submit" value="±Û¾²±â"> </form> <? //echo "<form action='./b.php' method='post' enctype='multipart/form-data'> "; //echo "<form action='b.php' method='post'> "; //echo "<li>Á¤´ä : <input type='text' name='v_dap' > "; //echo "<li>ÆÄÀÏ : <input type='file' name='assa'> "; //echo "<input type='submit' value='±Û¾²±â'> "; //echo "</form> "; echo "$cnt2"; mysql_close($db); ?> </body> </html> ************************************************************** ********************** b.php *************************** <? echo "$v_dap"; ?> ************************************************************** |