ȸ¿ø°¡ÀԡžÆÀ̵ð/ºñ¹øã±â
ȨÀ¸·Î


¾Ë¾ÆµÎ¸é Æí¸®ÇÑ FORM ¾×¼Ç Æ®¸¯.
17³â Àü
ÇÑ °³ÀÇ form ¾È¿¡ 2°³ ÀÌ»óÀÇ submit ¹öÆ°ÀÌ ÇÊ¿äÇÑ °æ¿ì°¡ Á¾Á¾ÀÖ½À´Ï´Ù.
°¢°¢ÀÇ submit ¹öÆ°ÀÌ ¼­·Î ´Ù¸¥ ÇÔ¼ö³ª ½ºÅ©¸³Æ®¸¦ ºÒ·¯¾ß ÇÒ °æ¿ìÀÔ´Ï´Ù.
ÀÌ·±°æ¿ì ¿©·¯°¡Áö ó¸® ¹æ¹ýÀÌ ÀÖÀ» ¼ö ÀÖÁö¸¸, ÀϹÝÀûÀ¸·Î´Â submit ¹öÆ°À» buttonÀ¸·Î Á¤ÀÇÇÑ ÈÄ ÀÚ¹Ù½ºÅ©¸³Æ®¸¦ ÀÌ¿ëÇÏ°Ô µË´Ï´Ù.

¿¹¸¦ µé¸é:
<form action="myscript.php">
<input type="text" name="email">
<input type="submit" value="ÁÖ¼Ò·Ï¿¡ ±â·Ï">
<input type="submit" value="½ºÆÔ¸ñ·Ï¿¡ ±â·Ï">
</form>
'ÁÖ¼Ò·Ï¿¡ ±â·Ï'À» ´©¸£¸é myscript.phpÀÇ 'ÁÖ¼Ò·Ï ±â·Ï' ÇÔ¼ö·Î À̵¿ÇÏ°í, '½ºÆÔ¸ñ·Ï¿¡ ±â·Ï'À» ´©¸£¸é '½ºÆÔ¸ñ·Ï ±â·Ï' ÇÔ¼ö·Î °¡·Á°íÇÕ´Ï´Ù.
ÀÚ¹Ù½ºÅ©¸³Æ®¸¦ ÀÌ¿ëÇÑ´Ù¸é ¾Æ¸¶µµ ´ÙÀ½°ú °°À» °ÍÀÔ´Ï´Ù.
<form action="myscript.php">
<input type="text" name="email">
<input type="hidden" name="what">
<input type="button" value="ÁÖ¼Ò·Ï¿¡ ±â·Ï" onClick="doSubmit('add_address');">
<input type="button" value="½ºÆÔ¸ñ·Ï¿¡ ±â·Ï" onClick="doSubmit('add_spam');">
</form>
±×¸®°í ³ª¼­ doSubmit À̶ó´Â ÀÚ¹Ù½ºÅ©¸³Æ® ÇÔ¼ö¿¡¼­ what hidden °ªÀ» ÀûÀýÇÏ°Ô º¯°æÇÑ ÈÄ formÀ» submit ÇÒ °ÍÀÔ´Ï´Ù.

ÀÌ·± °æ¿ì Á¦°¡ Æí¸®ÇÏ°Ô »ç¿ëÇÏ´Â ¹æ¹ýÀº ´ÙÀ½°ú °°½À´Ï´Ù.
<form action="myscript.php">
<input type="text" name="email">
<input type="submit" name="what=add_address&k2=v2&k3=v3&" value="ÁÖ¼Ò·Ï¿¡ ±â·Ï">
<input type="submit" name="what=add_spam&k2=v2&k3=v3&" value="½ºÆÔ¸ñ·Ï¿¡ ±â·Ï">
</form>
À§ÀÇ °æ¿ì ó·³ submit ¹öÆ°ÀÇ name¿¡ ¿øÇÏ´Â °ªµéÀ» ÁÖ¾î ÀÌ¿ëÇÏ´Â °ÍÀÔ´Ï´Ù.
ÇÏÁö¸¸, ¾ÆÁ÷ ÀÛµ¿Àº µÇÁö ¾Ê½À´Ï´Ù. ÇÑ°¡Áö ÀÛ¾÷À» ´õ ÇØÁÖ¾î¾ß ÇÕ´Ï´Ù.
submit name¿¡ ÀÔ·ÂÇÑ ¹®ÀÚ¿­ÀÌ ÀÚµ¿À¸·Î µðÄÚµù µÇÁö ¾Ê±â ¶§¹®ÀÔ´Ï´Ù.
myscript.php¿¡¼­ '%3D' ´Â '='·Î '%26'Àº '&'·Î °¢°¢ µðÄÚµùÇØ ÁÖ¾î¾ß ÇÕ´Ï´Ù.
ÃßõÃßõ : 328 Ãßõ ¸ñ·Ï
¹øÈ£ Á¦¸ñ
2,889
·¹À̸̽𵨠¹ÚÁöÀº
2,888
PHPÀÇ php.ini ÆÄÀÏ¿¡¼­ ¼³Á¤ÇÒ ¼ö ÀÖ´Â ÁÖ¿ä Ç׸ñµéÀ» Ä«Å×°í¸®º°·Î Á¤¸®
2,887
À¯Æ©ºê µ¿¿µ»óÀÇ ½æ³×ÀÏ À̹ÌÁö¸¦ üũÇÏ¿© À¯È¿ÇÑ ¿µ»óÀ̾ƴҶ§ ¿¬°áµÈ üũ¹Ú½º¸¦ ÀÚµ¿À¸·Î üũ
2,886
À̹ÌÁö URLÀÌ À¯È¿ÇÏÁö ¾ÊÀ» ¶§, ÇØ´ç À̹ÌÁö¿Í ¿¬°áµÈ üũ¹Ú½º¸¦ ÀÚµ¿À¸·Î üũ
2,885
HTTPS·Î Á¢¼ÓÇÑ »ç¿ëÀÚ¸¦ °­Á¦·Î HTTP·Î ¸®µð·º¼Ç ÇÏ·Á¸é
2,884
PHP¿¡¼­ MP3 ÆÄÀÏÀ» Á÷Á¢ ÀÐ°í ½ºÆ®¸®¹Ö Çϱâ
2,883
ÇöÀç ÆäÀÌÁö°¡ location.reload()¿¡ ÀÇÇØ »õ·Î°íħµÇ¾ú´ÂÁö
2,882
ÅؽºÆ® ÆÄÀÏÀ» Àаí, °¢ ÁÙÀÇ ³¡¿¡¼­ 6±ÛÀÚ¸¦ »èÁ¦ÇÑ ÈÄ, °á°ú¸¦ »õ·Î¿î ÆÄÀÏ¿¡ ÀúÀåÇÕ´Ï´Ù.
2,881
cURLÀ» »ç¿ëÇÏ¿© ¸®´ÙÀÌ·ºÆ®¸¦ µû¶ó°¡ ÃÖÁ¾ URL °¡Á®¿À±â
2,880
[PHP] $_SERVER ȯ°æº¯¼ö
2,879
10Áø¼ö <-> 16Áø¼ö º¯È¯±â PHP¼Ò½º
2,878
ÅؽºÆ®¿¡ Á÷Á¢ ±×¶óµ¥ÀÌ¼Ç »ö»óÀ» Àû¿ëÇÏ·Á¸é?
2,877
CSS¸¦ »ç¿ëÇÏ¿© ¿ä¼ÒÀÇ ³»¿ë¹°¿¡ µû¶ó width¸¦ Á¶Á¤ÇÏ´Â ¹æ¹ý
2,876
À¥¼­¹ö ip È®ÀÎ
2,875
À¥È£½ºÆÃÀÇ Àý´ë°æ·Î¸¦ È®ÀÎ
2,874
input ÀÔ·Â ÇÊµå ¾ÕµÚ °ø¹é ½Ç½Ã°£ Á¦°Å
2,873
Placeholder Æ÷Ä¿½º½Ã °¨Ãß±â
2,872
MySQL Áߺ¹µÈ µ¥ÀÌÅ͸¦ »èÁ¦
2,871
MySQL Áߺ¹ µ¥ÀÌÅÍ È®ÀÎ
2,870
sessionStorage.getItem ¿Í sessionStorage.setItem
2,869
Á¦ÀÌÄõ¸® ·£´ýÀ¸·Î ¹è°æ»ö º¯°æ
2,868
preg match¿¡ °üÇÑ Á¤±Ô½Ä
2,867
Stream an audio file with MediaPlayer ¿Àµð¿À ÆÄÀÏ ½ºÆ®¸®¹Ö Çϱâ
2,866
Audio Streaming PHP Code
2,865
PHP $ SERVER ȯ°æ º¯¼ö Á¤¸®
2,864
Vimeo (ºñ¸Þ¿À) API ¸¦ »ç¿ëÇÏ¿© Ç÷¹À̾î ÄÁÆ®·ÑÇϱâ
2,863
iframe »ç¿ë½Ã ÇÏ´Ü¿¡ ¹ß»ýÇÏ´Â °ø¹é Á¦°Å¹æ¹ý
2,862
¾ÆÀÌÇÁ·¹ÀÓ(iframe) Àüüȭ¸é °¡´ÉÇÏ°Ô Çϱâ
2,861
ºÎÆ®½ºÆ®·¦(bootstrapk)¿¡¼­ »ç¿ëÇÏ´Â class¸í Á¤¸®
2,860
ºÎÆ®½ºÆ®·¦ CSS
¸ñ·Ï
¹ÂÁ÷Æ®·ÎÆ® ºÎ»ê±¤¿ª½Ã ºÎ»êÁø±¸ °¡¾ßµ¿ ¤Ó °³ÀÎÁ¤º¸Ãë±Þ¹æħ
Copyright ¨Ï musictrot All rights reserved.