Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You're never submitting the form (because you don't seem to have one), thus never getting anything but the data that you embed into the URL (which is very unsecure, not a good idea to send sensitive data like passwords like that).</p> <p>I'm not sure, however, why are you complicating things like that.</p> <p>If you want to use GET, no need to build the URL yourself, just set up the form with GET method and use regular submit to send it, <em>no javascript needed</em>. Use the hidden field for the aref value (you can populate it when the form is generated, before submitting, etc, whatever works for you):</p> <pre><code>&lt;form method="GET" action="scripts/register.php"&gt; &lt;input name="aref" type="hidden" value="refcode" /&gt; &lt;input name="user" type="text" id="user" size="25" /&gt; &lt;input name="email" type="text" id="email" size="25" /&gt; &lt;input name="pass" type="password" id="pass" size="25" /&gt; &lt;input type="submit" name="signup" id="signup" value="Sign Up" /&gt; &lt;/form&gt; </code></pre> <p>Again, changing the method to POST would be a <strong>much better idea</strong>. Of course, then you need to access the variables like $_POST['aref'], etc. Just like this: </p> <pre><code>&lt;form method="POST" action="scripts/register.php"&gt; &lt;input name="aref" type="hidden" value="refcode" /&gt; &lt;input name="user" type="text" id="user" size="25" /&gt; &lt;input name="email" type="text" id="email" size="25" /&gt; &lt;input name="pass" type="password" id="pass" size="25" /&gt; &lt;input type="submit" name="signup" id="signup" value="Sign Up" /&gt; &lt;/form&gt; </code></pre> <p>And the PHP (for POST): </p> <pre><code>&lt;?php echo $_POST['email']; echo $_POST['user']; echo $_POST['pass']; echo $_POST['aref']; ?&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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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