Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I have come to the conclusion that the most probable reason that you are getting <code>NULL</code> values is that you are trying to execute PHP within <code>cgi-bin</code> which is mostly used/reserved for <code>.pl</code> or <code>.cgi</code> scripts. <strong>(PERL/CGI)</strong> – <code>.php</code> scripts will not execute under this folder.</p> <p>Having tested your code with the fixed named inputs, and testing under <code>cgi-bin</code> produced the same results.</p> <p>Move your <code>register.php</code> file outside of your <code>cgi-bin</code> and place it under <code>public_html</code> or sub-folder of your choice with the following code:</p> <p>(Copy/paste exactly as shown and use inside the same folder under public html and not cgi-bin)</p> <h2>HTML form</h2> <pre><code>&lt;form action="register.php" method="POST"&gt; &lt;table border="0"&gt; &lt;tr&gt; &lt;td&gt; &lt;label for="username"&gt; New Username: &lt;/label&gt; &lt;/td&gt; &lt;td&gt; &lt;input type="text" id="username" name="username"/&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;label for="password"&gt; New Password: &lt;/label&gt; &lt;/td&gt; &lt;td&gt; &lt;input type="password" id="password" name="password" /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;input type="submit" value="Submit"&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/form&gt; </code></pre> <h2>PHP handler</h2> <pre><code>&lt;?php $user = $_POST['username']; $pass = $_POST['password']; $encrypted_pass = md5($pass); //... insert terrible code here ... var_dump($user); var_dump($pass); ?&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload