title: Form not submitting to PHP action
body: <p>I have the following smarty tpl form:</p>
  
  <pre><code>&lt;form name="new_element" action="layout.php?action=newElement&amp;pageId={$data.page.id}" method="POST"&gt;
      &lt;input type="text" name="name" /&gt;
      &lt;input type="submit" name="submit" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And the layout.php action looks like this:</p>
  
  <pre><code>&lt;?php
  
      require_once('../initialize.php');
  
      $pages = new Smalllight($pdo, 'pages');
      $elements = new Smalllight($pdo, 'elements');
      $status = new Smalllight($pdo, 'status');
      $users = new SmalllightUsers($pdo, 'users');
      $profiles = new Smalllight($pdo, 'profiles');
  
      if($users-&gt;isLoggedIn() || $users-&gt;isRemember()) {
          //set user_id
          if(isset($_SESSION['user_id'])) { $user_id = $_SESSION['user_id']; }
          elseif(isset($_COOKIE['user_id'])) { $user_id = $_COOKIE['user_id']; }
          //reset Token
          if($users-&gt;isRemember()) { $users-&gt;resetToken($user_id, $settings['cookie_expire']); }
  
          //check if user is admin
          if($users-&gt;isAdmin()) {
              $data['admin'] = true;
  
              //find all statuses
              $getStatus = $status-&gt;findAll();
              if($getStatus == true) {
                  foreach($getStatus as $status)
                  { $data['status'][$status['id']] = $status; }
              }
  
              //-------------------//
              //----- ACTIONS -----//
              //-------------------//
  
              //----- VIEW LAYOUT -----\\
              if($_GET['action'] = 'viewLayout') {
                  //find page
                  $getPage = $pages-&gt;findById($_GET['pageId']);
                  if($getPage == true) {
                      $data['page'] = $getPage;
  
                      //find page elements
                      $pageElements = $elements-&gt;findByFieldValue('page_id', $_GET['pageId']);
                      if($pageElements == true) {
                          $data['pageElements'] = $pageElements;
                      }
  
                      //find page elements with tree structure
                      $getElements = $elements-&gt;findTree(array('page_id' =&gt; $_GET['pageId']), null, array('position' =&gt; 'asc'));
                      if($getElements == true) {
                          $data['elements'] = $getElements;
                      }
                  }
  
                  //assign objects
                  $smarty-&gt;assign('elements', $elements);
                  //assign data and display
                  $smarty-&gt;assign('data', $data);
                  $smarty-&gt;assign('page', 'layout');
                  $smarty-&gt;display('../themes/admin/layout.tpl');
              }
  
              echo '&lt;pre&gt;'; print_r($_POST); exit;
  
              //----- NEW ELEMENT ----\\
              if($_GET['action'] == 'newElement') {
                  echo '&lt;pre&gt;'; print_r($_POST); exit;
  
                  $elementCount = $elements-&gt;countByFieldValue('parent_id', $_POST['parent']);
                  if($_POST['name'] != NULL) {
                      $elements-&gt;setValue('name', $_POST['name']);
                      $elements-&gt;setValue('type', $_POST['type']);
                      $elements-&gt;setValue('class', $_POST['class']);
                      $elements-&gt;setValue('style', $_POST['style']);
                      $elements-&gt;setValue('content', $_POST['content']);
                      $elements-&gt;setValue('parent_id', $parentId);
                      $elements-&gt;setValue('page_id', $_GET['pageId']);
                      $elements-&gt;setValue('status_id', $_POST['status']);
                      $elements-&gt;setValue('position', $elementCount++);
                      $elements-&gt;store();
                  }
                  header('Location: '.$settings['site_url'].'admin/layout.php?action=viewLayout&amp;pageId='.$_GET['pageId']); exit;
              }
          }
          else { header('Location: '.$settings['site_url'].'index.php'); exit; }
      }
      else { header('Location: '.$settings['site_url'].'index.php'); exit; }
  
  ?&gt;
  </code></pre>
  
  <p>As you can see, i've set <code>echo '&lt;pre&gt;'; print_r($_POST); exit;</code> as the first line of the action, but when i submit the form it just takes me to where the form has to go (here: layout.php?action=newElement&amp;pageId=328) and does nothing.</p>
  
  <p>I have another file called pages.php with the exact similar fasion and that works.</p>