title: Sending user activation link via email. How it works?
body: <p>After user registration, website send activation code to email. something like that. <code>www.domain.com/?activate=&lt;code&gt;</code></p>
  
  <p>I'm creating 2 variants of activation: 1.manual 2.auto
  Lets say we have index.php. </p>
  
  <p>1.<strong>Manual method.</strong> When someone wants to activate user manually all things are obvious: </p>
  
  <p>User opens page www.domain.com/?activate</p>
  
  <p><code>Index.php</code> checks with following script and includes div file (which contains activation form)</p>
  
  <pre><code>   if (isset($_GET['activate'])) {
        $page='activate';
        $divfile = 'path to div.php';
      } 
      include $divfile;
  </code></pre>
  
  <p>Then page sends form data via ajax to <code>activation.php</code> file.</p>
  
  <p>2.<strong>Auto method</strong>. Let's say user clicked directly to <code>www.domain.com/?activate=&lt;code&gt;</code>. What I want to do is, to check <code>if(!empty($_GET['activate']))</code>, if all right. I can't figure out what to do. Programmatically send something like POST to <code>activation.php</code> or what?</p>