+++ ȨÁ¦ÀÛ ¹ÙÀ̺í +++
ȨÁ¦ÀÛ ¹ÙÀ̺í ÀÌ »çÀÌÆ®´Â ÀÌ¿µÂù´ÔÀÇ »çÀÌÆ®¸¦ º¹¿øÇÑ °ÍÀÔ´Ï´Ù.
Untitled Document
Html
Dhtml
Css
Php
Asp
Cgi
Java Script
Java Applet
Multimedia
Win Tip
PHP - ½ÇÀü¿¹Á¦(3)
Æûű׸¦ ÀÌ¿ëÇÑ º¯¼ö Àü´Þ¹æ¹ý ½ÇÀü ¿¹Á¦ ÀÔ´Ï´Ù. Æûűװ¡ ¹«¾ùÀÎÁö´Â ´ëÃæ ¾Æ½Ç°Ì´Ï´Ù. ÀÌ°ÍÀÌ ¾î¶»°Ô º¯¼ö¸¦ Àü´ÞÇÏ´ÂÁö Çѹø ¾Ë¾Æº¾½Ã´Ù.

demo12.html
<form method="post" action="demo12_1.html">
<input type="text" name="number"><br>
<input type=submit value="ok">
</form>


ÀÚ ±×¸®°í Æûű׿¡¼­ ÁöÁ¤ÇÑ action=demo12_1.html ¹®¼­¸¦ ´ÙÀ½°ú °°ÀÌ ¸¸µé¾î º¾½Ã´Ù.

demo12_1.html
<?
echo("$number");
?>




µ¥¸ð¸¦ º¸½Ã¸é ¾Ë°ÚÁö¸¸ ÆûÅÂ±× ¾È¿¡ ÀÖ´Â input type=text name=number ´Â ÀԷ°ªÀ» ÆûÀÇ °ªÀ¸·Î ¹Þ½À´Ï´Ù. ÀÌ°ÍÀ» º¯¼ö À̸§ÀÌ number ¿¡ Æû¾È¿¡ ÀÔ·ÂµÈ °ªÀ» µ¹·ÁÁÝ´Ï´Ù. ±×¸®°í ´Ù½Ã action ºÎºÐ¿¡¼­ ¹®¼­¸¦ ºÎ¸£ÁÒ demo12_1.html ÀÌ ¹®¼­¸¦ ºÎ¸¦¶§ º¯¼öÀÇ °ªÀ» ÀԷ¹ÞÀº °ªÀ¸·Î µ¹·ÁÁشٴ °ÍÀÔ´Ï´Ù.

demo12_1.html ¹®¼­´Â ´Ü¼øÈ÷ º¯¼ö number ÀÇ °ªÀ» Ãâ·ÂÇÏ´Â ¹®¼­À̹ǷΠÀü´Þ¹ÞÀº °ªÀ» ±×´ë·Î Ãâ·ÂÇÏ°Ô µÇ´Â°Ì´Ï´Ù. ¼Ò½º¿Í µ¥¸ð¸¦ º¸°í Çѹø °õ°õÈ÷ »ý°¢Çغ¸¼¼¿ä...ÀÌ°Å ÀÌÇØµÇ¸é º¯¼öÀü´ÞÀº °ÅÀÇ ´Ù µÈ°Í°°Àºµ¥...^&^
Update : 2000/08/01 [µ¹¾Æ°¡±â]