<p class="htmledit_views">Der Inhalt dieses Artikels sind die drei seitenübergreifenden Wertübertragungsmethoden in PHP. Jetzt teile ich ihn mit allen hier und kann auch Freunden in Not einen Hinweis geben</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-Wertübertragung</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 Value ist eine Methode für HTML<form>-Formularsprünge, die sehr praktisch ist. Zum Beispiel: </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>
<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>
<p class="line number5 index4 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;">5</p>
<p class="line number6 index5 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;">6</p>
<p class="line number7 index6 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;">7</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 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;">''</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;">''</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;">'text'</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;">'name1'</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;">'hidden'</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;">'name2'</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;">'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></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;">'submit'</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;">'提交'</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>
</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;"> Die Aktion im Formular wird mit dem URL-Pfad der Sprungseite und die Methode mit der Post-Methode ausgefüllt. Nachdem die Schaltfläche „Senden“ im Formular gedrückt wurde, werden alle Inhalte mit Namen im Formular an die ausgefüllte URL übertragen, die über $_POST['name'] abgerufen werden kann, zum Beispiel: </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;">'name1'</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;">'name2'</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;"> Hier gibt es einen sehr praktischen Trick: Wenn Sie im Eingabe-Tag den Typ „versteckt“ auswählen, wird das Eingabe-Tag ausgeblendet und nicht auf der Seite angezeigt, sondern in der Eingabe Das Tag wird auf der Seite ausgeblendet. Es gibt Namenswerte und Wertwerte, die zusammen mit der Schaltfläche „Senden“ übergeben werden. Dieses ausgeblendete Tag kann einige Inhalte übergeben, die Sie nicht anzeigen möchten. </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-Wert </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;"> Der GET-Wert wird übergeben, indem der URL gefolgt wird. Wenn die Seite springt, springt sie mit der URL. Wird häufig bei der Verwendung von <a>-Tags verwendet. Zum Beispiel: </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;">'delete.php?id=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 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;"> Nachdem Sie zu xxx.php gesprungen sind, können Sie den übergebenen Wert über $_GET['id'] abrufen. Die GET-Methode wird häufig in URLs verwendet, um eine PHP-Datei mit einer bestimmten ID zu löschen oder zu lesen. </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-Übergabewert </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 ist eine Art globale Variable, die häufig zum Speichern allgemeiner Daten wie der Benutzer-ID verwendet wird, nachdem sich der Benutzer angemeldet hat. Nach dem Speichern in SESSION können andere Seiten über SESSION abgerufen werden. Um SESSION zu verwenden, müssen Sie die Sitzung öffnen: </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>
<p class="line number5 index4 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;"> 5</p>
<p class="line number6 index5 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;">6</p>
<p class="line number7 index6 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;">7</p>
<p class="line number8 index7 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;">8</p>
<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>
</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 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;">'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;">]=value1;</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="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;">'two'</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;">'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></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;">'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></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></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;"> Die oben genannten drei Methoden sind gängige Methoden, auf die Sie sich beziehen können. </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;"> In Bezug auf die Vor- und Nachteile der drei Methoden wird der von get übergebene Wert im URL-Link angezeigt, was sehr unsicher ist. Wenn Sie auf eine andere Seite verlinken möchten, ist die Auswahl nicht bequem Sitzung ist eine gute und bequeme Methode </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;">Verwandte Empfehlungen: </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">Detaillierte Erläuterung des Unterschieds zwischen Wertübergabe und Referenzübergabe in 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>
Das obige ist der detaillierte Inhalt vonDrei Möglichkeiten, Werte über PHP-Seiten hinweg zu übergeben. Für weitere Informationen folgen Sie bitte anderen verwandten Artikeln auf der PHP chinesischen Website!