title: How to use $_SERVER, $_POST and $_GET in .tpl
body: <p>I have a <code>.tpl</code> file which contain form data which contain both add and edit functionality. I want to check whether user coming for <code>ADD</code> or for <code>EDIT</code> for that I need to check query string. 
  For that I want to used <code>$_SERVER</code>, <code>$_POST</code> and <code>$_GET</code> array variables into .tpl file. </p>
  
  <p>I am using directly like this but not working :</p>
  
  <pre><code>{$_SERVER}
  {if $step_info-&gt;actions eq ""}        
          &lt;tr&gt;            
              &lt;td&gt;&lt;textArea name="step_details[]"&gt;&lt;/textArea&gt;&lt;/td&gt;
              &lt;td&gt;&lt;textArea name="expected_results[]"&gt;&lt;/textArea&gt;&lt;/td&gt;
              &lt;td style="vertical-align: top;"&gt;
                  &lt;select onchange="content_modified = true"  name="etype[]"&gt;
                      &lt;option selected="selected" value="1" label="Manual"&gt;Manual&lt;/option&gt;
                      &lt;option value="2" label="Automated"&gt;Automated&lt;/option&gt;
                  &lt;/select&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
          {/if}
  </code></pre>
  
  <p>I am newbie in smarty and dont know much about it.</p>
  
  <p>Need help.</p>
  
  <p>Thanks in advance.</p>