snipt

Ctrl+h for KB shortcuts

PHP

<?php echo$_SERVER['PHP_SELF']; ?> makes sure that its valid in HTML Tidy in Firefox

<form action="<?php echo$_SERVER['PHP_SELF']; ?>" method="post" id="contactform">
https://snipt.net/embed/8045b19c5b075069b4c7d58b987e2733/
/raw/8045b19c5b075069b4c7d58b987e2733/
8045b19c5b075069b4c7d58b987e2733
php
PHP
1
2019-07-21T04:26:22
True
False
False
Apr 22, 2014 at 07:43 PM
/api/public/snipt/4207/
php-echo_serverphp_self-makes-sure-that-its-valid-in-html-tidy-in-firefox
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="x">&lt;form action=&quot;</span><span class="cp">&lt;?php</span> <span class="k">echo</span><span class="nv">$_SERVER</span><span class="p">[</span><span class="s1">&#39;PHP_SELF&#39;</span><span class="p">];</span> <span class="cp">?&gt;</span><span class="x">&quot; method=&quot;post&quot; id=&quot;contactform&quot;&gt;</span> </span></pre></div> </td></tr></table>
forms