title: Variable is not usind in link?
body: <p>I need som help - I really cant see where I do the mistake!</p>
  
  <p>I need to below code to remember the variable for loading the next page. The page loads using a link like:</p>
  
  <pre><code>editgallery.php?folder=big_fish&amp;id=459
  </code></pre>
  
  <p>Now I want the below codes to remember the folder variable: big_fish for generating the next link. In the bottom of the codes I use a "location" to load the next page. It looks like:</p>
  
  <pre><code>header("Location: galleries.php?folder".$folder." ");
  </code></pre>
  
  <p>It should send the user back to the page they came from when clicking "update" in the form in the below codes:</p>
  
  <pre><code>if(!$_POST["submit"])
  {
  include "header.php";
  $query = mysql_query("select name, type, folder, description , displaydate from galleries where id = '".$_GET["id"]."' ");
  $row = mysql_fetch_row($query);
  $name = $row[0];
  $type = $row[1];
  $folder = $row[2];
  $description = $row[3];
  $displaydate = $row[4];
  ?&gt;
  
  &lt;form method="POST" action="&lt;?=$_SERVER["PHP_SELF"]?&gt;" name="myform" id="myform"&gt;
  &lt;center&gt;&lt;table width="&lt;?=$setting["tablewidth"]?&gt;" class="admintable" cellpadding="&lt;?=$setting["cellpadding"]?&gt;"&gt;
  &lt;tr&gt;
      &lt;td class="adminheader" colspan="2"&gt;&amp;nbsp;&lt;b&gt;Edit Gallery:&lt;/b&gt;&lt;/td&gt;
  &lt;/tr&gt;
  
          &lt;tr&gt;    
              &lt;td class="admincell"&gt;&amp;nbsp;Name:&lt;/td&gt;
              &lt;td class="admincell"&gt;
  &lt;input type="text" name="name" value="&lt;?=$name?&gt;" size="40"&gt;&lt;/td&gt;
  &lt;/tr&gt;
          &lt;tr&gt;    
              &lt;td class="admincell"&gt;&amp;nbsp;Category:&lt;/td&gt;&lt;td class="admincell"&gt;
  
  &lt;?=$folder?&gt;
  
  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr valign="top"&gt;
  &lt;td class="admincell"&gt;&amp;nbsp;Display Date:&lt;/td&gt;
  &lt;td class="admincell" align=""&gt;
      &lt;input style="border-style:hidden" type="text" value="&lt;?=$displaydate?&gt;" id="from" id="&lt;?php echo $_REQUEST["from"]; ?&gt;" name="displaydate" size="40"&gt;
      (yyyymmdd - Like &lt;?=date('Ymd');?&gt; or &lt;?=date('Y-m-d');?&gt;)&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr valign="top"&gt;
  &lt;td class="admincell"&gt;&amp;nbsp;Description:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/td&gt;&lt;td class="admincell"&gt;
  
  &lt;textarea id="Enter you description of the photo set here" name="description"&gt;&lt;?=$description?&gt;&lt;/textarea&gt;&lt;/td&gt;
  &lt;!-- http://ckeditor.com/ --&gt;          
              &lt;script&gt;
                  CKEDITOR.replace( 'description' );
              &lt;/script&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td class="admincell" colspan="2"&gt;&lt;input type="hidden" name="id" value="&lt;?=$_GET["id"]?&gt;"&gt;&lt;center&gt;
  &lt;input type="submit" name="submit" value="Update"&gt;&lt;/center&gt;&lt;/td&gt;
  &lt;/tr&gt;
  
  &lt;/table&gt;&lt;/center&gt;
  &lt;/form&gt;&lt;center&gt;
  &lt;p&gt;
  
  
  
  &lt;/table&gt;&lt;/center&gt;
  
  &lt;?
  include "footer.php";
  }
  else
  {
  
  mysql_query("update galleries set name = '".$_POST["name"]."', description = '".$_POST["description"]."' , displaydate = '" . $_POST["displaydate"] . "' where id = '".$_POST["id"]."' ");
  
  header("Location: galleries.php?folder".$folder." ");
  //header("Location: galleries.php");
  }
  </code></pre>
  
  <p>Can anyone see why the $folder name from the link is not saved for the location link - why cant the codes "transfer" it from the <code>editgallery.php?folder=big_fish&amp;id=459</code> link and to the location like: <code>("Location: galleries.php?folder".$folder." ");</code></p>
  
  <p>Please advice.</p>