>  기사  >  백엔드 개발  >  PHP 페이지 간에 값을 전달하는 세 가지 방법

PHP 페이지 간에 값을 전달하는 세 가지 방법

不言
不言원래의
2018-04-04 09:49:146625검색
<p class="htmledit_views">이 글의 내용은 PHP의 세 가지 페이지 간 값 전송 방법입니다. 이제 공유하고 도움이 필요한 친구들에게 참고하겠습니다</p> <p style="margin-top:8px;margin-bottom:8px;font-size:12.5px;font-family:'微软雅黑', Verdana, sans-serif, '宋体';background-color:rgb(255,255,255);letter-spacing:.5px;"> 1. POST 값 전송 </p> <p style="margin-top:8px;margin-bottom:8px;font-size:12.5px;font-family:'微软雅黑', Verdana, sans-serif, '宋体';background-color:rgb(255,255,255);letter-spacing:.5px;"> Post 값 전송은 html에 사용됩니다. <form>폼 점프 방식은 사용하기 매우 편리합니다. 예를 들면 다음과 같습니다. 7 </p> <p style="margin:0px;padding:0px;color:rgb(51,51,51);font-family:'微软雅黑', Verdana, sans-serif, '宋体';font-size:13px;background-color:rgb(255,255,255);"><br></p> <p class="syntaxhighlighter html" style="padding:0px;margin:1em 0px;font-size:1em;"><br></p> <p class="line number1 index0 alt2" style="margin:0px;padding:0px 1em;border:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;white-space:pre;"><code class="html spaces" style="color:rgb(64,170,83);font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;"> </code><code class="html plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;"><</code><code class="html keyword" style="color:rgb(0,102,153);padding:0px;font-size:1em;margin:0px;font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;line-height:1.1em;border:0px;float:none;vertical-align:baseline;font-weight:bold;">html</code><code class="html plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">></code></p> <p class="line number2 index1 alt1" style="margin:0px;padding:0px 1em;border:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;white-space:pre;"><code class="html spaces" style="color:rgb(64,170,83);font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;"> </code><code class="html plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;"><</code><code class="html keyword" style="color:rgb(0,102,153);padding:0px;font-size:1em;margin:0px;font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;line-height:1.1em;border:0px;float:none;vertical-align:baseline;font-weight:bold;">form</code> <code class="html color1" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">action</code><code class="html plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">=</code><code class="html string" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;color:rgb(0,0,255);padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">&#39;&#39;</code> <code class="html color1" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">method</code><code class="html plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">=</code><code class="html string" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;color:rgb(0,0,255);padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">&#39;&#39;</code><code class="html plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">></code></p> <p class="line number3 index2 alt2" style="margin:0px;padding:0px 1em;border:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;white-space:pre;"><code class="html spaces" style="color:rgb(64,170,83);font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;"> </code><code class="html plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;"><</code><code class="html keyword" style="color:rgb(0,102,153);padding:0px;font-size:1em;margin:0px;font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;line-height:1.1em;border:0px;float:none;vertical-align:baseline;font-weight:bold;">input</code> <code class="html color1" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">type</code><code class="html plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">=</code><code class="html string" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;color:rgb(0,0,255);padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">&#39;text&#39;</code> <code class="html color1" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">name</code><code class="html plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">=</code><code class="html string" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;color:rgb(0,0,255);padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">&#39;name1&#39;</code><code class="html plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">></code></p> <p class="line number4 index3 alt1" style="margin:0px;padding:0px 1em;border:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;white-space:pre;"><code class="html spaces" style="color:rgb(64,170,83);font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;"> </code><code class="html plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;"><</code><code class="html keyword" style="color:rgb(0,102,153);padding:0px;font-size:1em;margin:0px;font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;line-height:1.1em;border:0px;float:none;vertical-align:baseline;font-weight:bold;">input</code> <code class="html color1" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">type</code><code class="html plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">=</code><code class="html string" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;color:rgb(0,0,255);padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">&#39;hidden&#39;</code> <code class="html color1" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">name</code><code class="html plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">=</code><code class="html string" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;color:rgb(0,0,255);padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">&#39;name2&#39;</code> <code class="html color1" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">value</code><code class="html plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">=</code><code class="html string" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;color:rgb(0,0,255);padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">&#39;value&#39;</code><code class="html plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">></code></p> <p class="line number5 index4 alt2" style="margin:0px;padding:0px 1em;border:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;white-space:pre;"><code class="html spaces" style="color:rgb(64,170,83);font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;"> </code><code class="html plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;"><</code><code class="html keyword" style="color:rgb(0,102,153);padding:0px;font-size:1em;margin:0px;font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;line-height:1.1em;border:0px;float:none;vertical-align:baseline;font-weight:bold;">input</code> <code class="html color1" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">type</code><code class="html plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">=</code><code class="html string" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;color:rgb(0,0,255);padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">&#39;submit&#39;</code> <code class="html color1" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">value</code><code class="html plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">=</code><code class="html string" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;color:rgb(0,0,255);padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">&#39;提交&#39;</code><code class="html plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">></code></p> <p class="line number6 index5 alt1" style="margin:0px;padding:0px 1em;border:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;white-space:pre;"><code class="html spaces" style="color:rgb(64,170,83);font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;"> </code><code class="html plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;"></</code><code class="html keyword" style="color:rgb(0,102,153);padding:0px;font-size:1em;margin:0px;font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;line-height:1.1em;border:0px;float:none;vertical-align:baseline;font-weight:bold;">form</code><code class="html plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">></code></p> <p class="line number7 index6 alt2" style="margin:0px;padding:0px 1em;border:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;white-space:pre;"><code class="html spaces" style="color:rgb(64,170,83);font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;"> </code><code class="html plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;"></</code><code class="html keyword" style="color:rgb(0,102,153);padding:0px;font-size:1em;margin:0px;font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;line-height:1.1em;border:0px;float:none;vertical-align:baseline;font-weight:bold;">html</code><code class="html plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">></code></p> <p style="margin-top:8px;margin-bottom:8px;font-size:12.5px;font-family:'微软雅黑', Verdana, sans-serif, '宋体';background-color:rgb(255,255,255);letter-spacing:.5px;"><br></p> <p style="margin-top:8px;margin-bottom:8px;font-size:12.5px;font-family:'微软雅黑', Verdana, sans-serif, '宋体';background-color:rgb(255,255,255);letter-spacing:.5px;"> 폼의 액션은 점프 페이지의 URL 경로로 채워지고, 메소드는 포스트 메소드로 채워집니다. 양식에서 제출 버튼을 누르면 양식에 이름이 있는 모든 콘텐츠가 $_POST['name']을 통해 얻을 수 있는 채워진 URL로 전송됩니다. 예: </p> <p style="margin:0px;padding:0px;color:rgb(51,51,51);font-family:'微软雅黑', Verdana, sans-serif, '宋体';font-size:13px;background-color:rgb(255,255,255);"><br></p> <p class="syntaxhighlighter php" style="padding:0px;margin:1em 0px;font-size:1em;"><br></p> <p class="toolbar" style="margin:0px;padding:0px;border:none;float:none;line-height:1.1em;vertical-align:baseline;font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:10px;color:rgb(255,255,255);background-color:rgb(108,226,108);"><span style="margin:0px;padding:0px;"> ?</span></p> <table border="0" style="margin:0px;padding:0px;font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;border:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;"><tbody style="padding:0px;margin:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;"><tr style="border-top:0px;padding:0px;margin:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;" class="firstRow"> <td class="gutter" style="border-width:0px;font-size:1em;color:rgb(175,175,175);line-height:1.1em;padding:0px;margin:0px;float:none;vertical-align:baseline;font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"> <p class="line number1 index0 alt2" style="margin:0px;padding:0px .5em 0px 1em;border-width:0px 3px 0px 0px;border-right-style:solid;border-right-color:rgb(108,226,108);float:none;line-height:1.1em;text-align:right;vertical-align:baseline;font-size:1em;white-space:pre;">1</p> <p class="line number2 index1 alt1" style="margin:0px;padding:0px .5em 0px 1em;border-width:0px 3px 0px 0px;border-right-style:solid;border-right-color:rgb(108,226,108);float:none;line-height:1.1em;text-align:right;vertical-align:baseline;font-size:1em;white-space:pre;">2</p> <p class="line number3 index2 alt2" style="margin:0px;padding:0px .5em 0px 1em;border-width:0px 3px 0px 0px;border-right-style:solid;border-right-color:rgb(108,226,108);float:none;line-height:1.1em;text-align:right;vertical-align:baseline;font-size:1em;white-space:pre;">3</p> <p class="line number4 index3 alt1" style="margin:0px;padding:0px .5em 0px 1em;border-width:0px 3px 0px 0px;border-right-style:solid;border-right-color:rgb(108,226,108);float:none;line-height:1.1em;text-align:right;vertical-align:baseline;font-size:1em;white-space:pre;">4</p> </td> <td class="code" style="border-width:0px;font-size:1em;line-height:1.1em;padding:0px;margin:0px;float:none;vertical-align:baseline;font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"> <p class="container" style="margin:0px;padding:0px;border:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;"><br></p> <p class="line number1 index0 alt2" style="margin:0px;padding:0px 1em;border:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;white-space:pre;"><code class="php plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;"><?php</code></p><p class="line number2 index1 alt1" style="margin:0px;padding:0px 1em;border:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;white-space:pre;"><code class="php variable" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;color:rgb(170,119,0);padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">$a</code><code class="php plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">=</code><code class="php variable" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;color:rgb(170,119,0);padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">$_POST</code><code class="php plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">[</code><code class="php string" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;color:rgb(0,0,255);padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">&#39;name1&#39;</code><code class="php plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">];</code></p><p class="line number3 index2 alt2" style="margin:0px;padding:0px 1em;border:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;white-space:pre;"><code class="php variable" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;color:rgb(170,119,0);padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">$b</code><code class="php plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">=</code><code class="php variable" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;color:rgb(170,119,0);padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">$_POST</code><code class="php plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">[</code><code class="php string" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;color:rgb(0,0,255);padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">&#39;name2&#39;</code><code class="php plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">];</code></p><p class="line number4 index3 alt1" style="margin:0px;padding:0px 1em;border:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;white-space:pre;"><code class="php plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">?></code></p> </td> </tr></tbody></table> <p style="margin-top:8px;margin-bottom:8px;font-size:12.5px;font-family:'微软雅黑', Verdana, sans-serif, '宋体';background-color:rgb(255,255,255);letter-spacing:.5px;"><br></p> <p style="margin-top:8px;margin-bottom:8px;font-size:12.5px;font-family:'微软雅黑', Verdana, sans-serif, '宋体';background-color:rgb(255,255,255);letter-spacing:.5px;"> 여기에는 매우 편리한 트릭이 있습니다. 입력 태그에서 유형을 '숨김'으로 선택하면 입력 태그가 숨겨지고 페이지에 표시되지 않습니다. 그러나 입력 태그는 양식에 있습니다. 이름 값이 있으며 값 값도 제출 버튼과 함께 전달됩니다. 이 숨겨진 레이블은 표시하고 싶지 않은 일부 콘텐츠를 전달할 수 있습니다. </p> <p style="margin-top:8px;margin-bottom:8px;font-size:12.5px;font-family:'微软雅黑', Verdana, sans-serif, '宋体';background-color:rgb(255,255,255);letter-spacing:.5px;"> 2. GET 값 전송 </p> <p style="margin-top:8px;margin-bottom:8px;font-size:12.5px;font-family:'微软雅黑', Verdana, sans-serif, '宋体';background-color:rgb(255,255,255);letter-spacing:.5px;"> GET 값 전송은 페이지가 이동할 때 해당 URL을 따라 이동합니다. 일반적으로 <a> 태그 사용에 사용됩니다. 예: </p> <p style="margin:0px;padding:0px;color:rgb(51,51,51);font-family:'微软雅黑', Verdana, sans-serif, '宋体';font-size:13px;background-color:rgb(255,255,255);"><br></p> <p class="syntaxhighlighter html" style="padding:0px;margin:1em 0px;font-size:1em;"><br></p> <p class="toolbar" style="margin:0px;padding:0px;border:none;float:none;line-height:1.1em;vertical-align:baseline;font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:10px;color:rgb(255,255,255);background-color:rgb(108,226,108);"><span style="margin:0px;padding:0px;">?</span></p> <table border="0" style="margin:0px;padding:0px;font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;border:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;"><tbody style="padding:0px;margin:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;"><tr style="border-top:0px;padding:0px;margin:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;" class="firstRow"> <td class="gutter" style="border-width:0px;font-size:1em;color:rgb(175,175,175);line-height:1.1em;padding:0px;margin:0px;float:none;vertical-align:baseline;font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><p class="line number1 index0 alt2" style="margin:0px;padding:0px .5em 0px 1em;border-width:0px 3px 0px 0px;border-right-style:solid;border-right-color:rgb(108,226,108);float:none;line-height:1.1em;text-align:right;vertical-align:baseline;font-size:1em;white-space:pre;">1</p></td> <td class="code" style="border-width:0px;font-size:1em;line-height:1.1em;padding:0px;margin:0px;float:none;vertical-align:baseline;font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"> <p class="container" style="margin:0px;padding:0px;border:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;"><br></p> <p class="line number1 index0 alt2" style="margin:0px;padding:0px 1em;border:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;white-space:pre;"><code class="html plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;"><</code><code class="html keyword" style="color:rgb(0,102,153);padding:0px;font-size:1em;margin:0px;font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;line-height:1.1em;border:0px;float:none;vertical-align:baseline;font-weight:bold;">a</code> <code class="html color1" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">href</code><code class="html plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">=</code><code class="html string" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;color:rgb(0,0,255);padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">&#39;delete.php?id=value&#39;</code><code class="html plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">>点我跳转</</code><code class="html keyword" style="color:rgb(0,102,153);padding:0px;font-size:1em;margin:0px;font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;line-height:1.1em;border:0px;float:none;vertical-align:baseline;font-weight:bold;">a</code><code class="html plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">></code></p> </td> </tr></tbody></table> <p style="margin-top:8px;margin-bottom:8px;font-size:12.5px;font-family:'微软雅黑', Verdana, sans-serif, '宋体';background-color:rgb(255,255,255);letter-spacing:.5px;"><br></p> <p style="margin-top:8px;margin-bottom:8px;font-size:12.5px;font-family:'微软雅黑', Verdana, sans-serif, '宋体';background-color:rgb(255,255,255);letter-spacing:.5px;"> xxx.php로 점프한 후 $_GET['id']를 통해 전달된 값을 얻을 수 있습니다. GET 메소드는 특정 ID를 가진 PHP 파일을 삭제하거나 읽기 위해 URL에서 자주 사용됩니다. </p> <p style="margin-top:8px;margin-bottom:8px;font-size:12.5px;font-family:'微软雅黑', Verdana, sans-serif, '宋体';background-color:rgb(255,255,255);letter-spacing:.5px;"> 3. SESSION 값 전송 </p> <p style="margin-top:8px;margin-bottom:8px;font-size:12.5px;font-family:'微软雅黑', Verdana, sans-serif, '宋体';background-color:rgb(255,255,255);letter-spacing:.5px;"> SESSION은 전역 변수의 일종으로, 사용자가 로그인한 후 사용자 ID 등의 공통 데이터를 저장하는 데 자주 사용됩니다. 세션에 저장되면 세션을 통해 다른 페이지를 얻을 수 있습니다. 4 </p> <p style="margin:0px;padding:0px;color:rgb(51,51,51);font-family:'微软雅黑', Verdana, sans-serif, '宋体';font-size:13px;background-color:rgb(255,255,255);"> 5<br></p>6<p class="syntaxhighlighter php" style="padding:0px;margin:1em 0px;font-size:1em;"><br>7</p> <p class="toolbar" style="margin:0px;padding:0px;border:none;float:none;line-height:1.1em;vertical-align:baseline;font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:10px;color:rgb(255,255,255);background-color:rgb(108,226,108);">8<span style="margin:0px;padding:0px;"><p class="line number9 index8 alt2" style="margin:0px;padding:0px .5em 0px 1em;border-width:0px 3px 0px 0px;border-right-style:solid;border-right-color:rgb(108,226,108);float:none;line-height:1.1em;text-align:right;vertical-align:baseline;font-size:1em;white-space:pre;">9</p> <p class="line number10 index9 alt1" style="margin:0px;padding:0px .5em 0px 1em;border-width:0px 3px 0px 0px;border-right-style:solid;border-right-color:rgb(108,226,108);float:none;line-height:1.1em;text-align:right;vertical-align:baseline;font-size:1em;white-space:pre;">10</p> <p class="line number11 index10 alt2" style="margin:0px;padding:0px .5em 0px 1em;border-width:0px 3px 0px 0px;border-right-style:solid;border-right-color:rgb(108,226,108);float:none;line-height:1.1em;text-align:right;vertical-align:baseline;font-size:1em;white-space:pre;">11</p> <p class="line number12 index11 alt1" style="margin:0px;padding:0px .5em 0px 1em;border-width:0px 3px 0px 0px;border-right-style:solid;border-right-color:rgb(108,226,108);float:none;line-height:1.1em;text-align:right;vertical-align:baseline;font-size:1em;white-space:pre;">12</p></span></p> <td class="code" style="border-width:0px;font-size:1em;line-height:1.1em;padding:0px;margin:0px;float:none;vertical-align:baseline;font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"> <p class="container" style="margin:0px;padding:0px;border:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;"><br></p> <p class="line number1 index0 alt2" style="margin:0px;padding:0px 1em;border:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;white-space:pre;"><code class="php plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, 고정 폭 ;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;"><?php </code><code class="php plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;"><?php</code></p><p class="line number2 index1 alt1" style="margin:0px;padding:0px 1em;border:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;white-space:pre;"><code class="php comments" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;color:rgb(0,130,0);padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">//session赋值</code></p><p class="line number3 index2 alt2" style="margin:0px;padding:0px 1em;border:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;white-space:pre;"><code class="php spaces" style="color:rgb(64,170,83);font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;"> </code><code class="php plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">session_start();</code></p><p class="line number4 index3 alt1" style="margin:0px;padding:0px 1em;border:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;white-space:pre;"><code class="php spaces" style="color:rgb(64,170,83);font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;"> </code><code class="php variable" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;color:rgb(170,119,0);padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">$_SESSION</code><code class="php plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">[</code><code class="php string" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;color:rgb(0,0,255);padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">&#39;one&#39;</code><code class="php plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">]=value1;</code><p 클래스 ="라인 번호2 인덱스1 alt1" 스타일="margin:0px;padding:0px 1em;border:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;white-space: pre;"><code class="php comments" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em; color:rgb(0,130,0);padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">//session赋值</code></p><p class="line number3 index2 alt2" style="margin:0px;padding:0px 1em;border:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;white-space:pre;">< code class="php space" style="color:rgb(64,170,83);font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height :1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">   </code><code class="php plain" style="font-family:Consolas, ' 비트스트림 Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline; ">session_start();</code>🎜<p class="line number4 index3 alt1" style="margin:0px;padding:0px 1em;border:0px;float:none;line-height:1.1em;vertical- align:baseline;font-size:1em;white-space:pre;"><code class="php space" style="color:rgb(64,170,83);font-family:Consolas, 'Bitstream Vera Sans Mono' , 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">   </code ><code class="php 변수" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;color:rgb (170,119,0);padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">$_SESSION</code><code class="php plain" style="font-family :Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical- align:baseline;">[</code><code class="php string" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em; line-height:1.1em;color:rgb(0,0,255);padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">'one'</code><code 클래스 ="php plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px ;border:0px;float:none;vertical-align:baseline;">]=value1;</code>🎜<p class="line number5 index4 alt2" style="margin:0px;padding:0px 1em;border:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;white-space:pre;"><code class="php spaces" style="color:rgb(64,170,83);font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;"> </code><code class="php variable" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;color:rgb(170,119,0);padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">$_SESSION</code><code class="php plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">[</code><code class="php string" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;color:rgb(0,0,255);padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">&#39;two&#39;</code><code class="php plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">]=value2;</code></p><p class="line number6 index5 alt1" style="margin:0px;padding:0px 1em;border:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;white-space:pre;"> </p><p class="line number7 index6 alt2" style="margin:0px;padding:0px 1em;border:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;white-space:pre;"><code class="php comments" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;color:rgb(0,130,0);padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">//session值的读取:</code></p><p class="line number8 index7 alt1" style="margin:0px;padding:0px 1em;border:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;white-space:pre;"><code class="php spaces" style="color:rgb(64,170,83);font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;"> </code><code class="php variable" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;color:rgb(170,119,0);padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">$one</code> <code class="php plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">= </code><code class="php variable" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;color:rgb(170,119,0);padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">$_SESSION</code><code class="php plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">[</code><code class="php string" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;color:rgb(0,0,255);padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">&#39;one&#39;</code><code class="php plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">];</code></p><p class="line number9 index8 alt2" style="margin:0px;padding:0px 1em;border:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;white-space:pre;"><code class="php spaces" style="color:rgb(64,170,83);font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;"> </code> </p><p class="line number10 index9 alt1" style="margin:0px;padding:0px 1em;border:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;white-space:pre;"><code class="php spaces" style="color:rgb(64,170,83);font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;"> </code><code class="php comments" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;color:rgb(0,130,0);padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">//session值的销毁</code></p><p class="line number11 index10 alt2" style="margin:0px;padding:0px 1em;border:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;white-space:pre;"><code class="php spaces" style="color:rgb(64,170,83);font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;"> </code><code class="php plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">unset(</code><code class="php variable" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;color:rgb(170,119,0);padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">$_SESSION</code><code class="php plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">[</code><code class="php string" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;color:rgb(0,0,255);padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">&#39;one&#39;</code><code class="php plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">]);</code></p><p class="line number12 index11 alt1" style="margin:0px;padding:0px 1em;border:0px;float:none;line-height:1.1em;vertical-align:baseline;font-size:1em;white-space:pre;"><code class="php plain" style="font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:1em;line-height:1.1em;padding:0px;margin:0px;border:0px;float:none;vertical-align:baseline;">?></code></code></p> </td> <p style="margin-top:8px;margin-bottom:8px;font-size:12.5px;font-family:'微软雅黑', Verdana, sans-serif, '宋体';background-color:rgb(255,255,255);letter-spacing:.5px;"><br></p> <p style="margin-top:8px;margin-bottom:8px;font-size:12.5px;font-family:'微软雅黑', Verdana, sans-serif, '宋体';background-color:rgb(255,255,255);letter-spacing:.5px;"> 위 3가지 방법은 일반적인 방법이므로 참고하시면 됩니다. </p> <p style="margin-top:8px;margin-bottom:8px;font-size:12.5px;font-family:'微软雅黑', Verdana, sans-serif, '宋体';background-color:rgb(255,255,255);letter-spacing:.5px;"> 세 가지 방법의 장단점을 보면, get에서 전달한 값이 URL 링크에 표시되므로 매우 안전하지 않습니다. 다른 페이지로 연결하려는 경우 게시물을 사용하는 것이 편리하지 않습니다. 그리고 편리한 방법</p> <p style="margin-top:8px;margin-bottom:8px;font-size:12.5px;font-family:'微软雅黑', Verdana, sans-serif, '宋体';background-color:rgb(255,255,255);letter-spacing:.5px;"> . <img src="https://img.php.cn/upload/article/000/153/291/9d327346da59a8eb93e1a2f9f28b3f63-0.png" alt=""></p> <p style="margin-top: 8px; margin-bottom: 8px; font-size: 12.5px; font-family: 微软雅黑, Verdana, sans-serif, 宋体; background-color: rgb(255, 255, 255); letter-spacing: 0.5px;"><img src="https://img.php.cn/upload/article/000/153/291/9d327346da59a8eb93e1a2f9f28b3f63-1.jpg" alt=""></p> <p style="margin-top: 8px; margin-bottom: 8px; font-size: 12.5px; font-family: 微软雅黑, Verdana, sans-serif, 宋体; background-color: rgb(255, 255, 255); letter-spacing: 0.5px;">관련 추천: </p> <p style="margin-top: 8px; margin-bottom: 8px; font-size: 12.5px; font-family: 微软雅黑, Verdana, sans-serif, 宋体; background-color: rgb(255, 255, 255); letter-spacing: 0.5px;"><a href="http://www.php.cn/php-weizijiaocheng-388417.html" target="_self">php</a></p> <p style="margin-top: 8px; margin-bottom: 8px; font-size: 12.5px; font-family: 微软雅黑, Verdana, sans-serif, 宋体; background-color: rgb(255, 255, 255); letter-spacing: 0.5px;"><br></p>에서 값 전달과 참조 전달의 차이점에 대한 자세한 설명

위 내용은 PHP 페이지 간에 값을 전달하는 세 가지 방법의 상세 내용입니다. 자세한 내용은 PHP 중국어 웹사이트의 기타 관련 기사를 참조하세요!

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.