title: Post value not getting the whole product name
body: <p>I have this code which i want to extract unique product then post the values of the unique products to a different page.but its only pasting the searched value.</p>
  
  <pre><code>&lt;?php include('header.php');?&gt;
      &lt;!-- end header --&gt;
          &lt;div class="container"&gt;
          &lt;div class="row"&gt;
             &lt;div class="col-lg-3"&gt;
             &lt;/div&gt;
  
          &lt;div class="col-lg-9"&gt;
              &lt;div class="row"&gt;
                  &lt;div class="well well-sm " &gt;
                      &lt;strong&gt;Category Title&lt;/strong&gt;
                      &lt;div class="btn-group" style="float:right;"&gt;
                          &lt;a href="#" id="list" class="btn btn-themebtn-sm"&gt;
                          &lt;i class="fa fa-list fa-1x"&gt;&lt;/i&gt;List&lt;/a&gt; 
                          &lt;span style= "padding:5px;"href="#" id="grid" class="btn btn-warning btn-sm"&gt;&lt;i class="fa fa-th fa-1x"&gt;&lt;/i&gt;Grid&lt;/span&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
  
                  &lt;?php
                  $query ="SELECT pname,pfeat,MIN(pprice) as minprice,MAX(pprice) as maxprice,count(*) as count FROM products where (pname like '%samsung%' AND conf=0) or (pmanu like '%samsung%' AND conf=0) GROUP BY pname ORDER BY count ;";
                  $stmt = $conn-&gt;prepare($query );
                  $stmt-&gt;execute();
                  while ($row = $stmt-&gt;fetch(PDO::FETCH_ASSOC))
                  {
                      //extract row, this will make $row['firstname'] to just $firstname only
                      extract($row);
                  ?&gt;
  
                                      &lt;?php $par=$row['pname'];?&gt;
                                      &lt;?php echo "&lt;a href=pvendors.php?post=".$par."&gt;".$row['pname']."&lt;/a&gt;";?&gt;&lt;/h4&gt;
                                  &lt;p class="group inner list-group-item-text"&gt;
                                  &lt;p&gt;Retailers &lt;?php echo $row['count'];?&gt;
                                      &lt;/p&gt;&lt;?php echo $row['pfeat'];?&gt;
                                      &lt;/p&gt;
                                  &lt;div class="row"&gt;
                                      &lt;div class="col-xs-12 col-md-6"&gt;
                                          &lt;p class="lead"&gt;
                                              Price Range KSh.&lt;?php echo $row['minprice'];?&gt; - Ksh.&lt;?php echo $row['maxprice'];?&gt;&lt;/p&gt;
                                      &lt;/div&gt;
  </code></pre>