Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The basic solution (lazy too) could be dragging around all your possible parameters with empy values when not needed, so for example you would have:</p> <pre><code>&lt;ul class="archive"&gt; &lt;li&gt; &lt;div&gt;Year&lt;/div&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="article.php?year=all&amp;category=&lt;?=$_GET['category']?&gt;"&gt;Every year&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="article.php?year=2013&amp;category=&lt;?=$_GET['category']?&gt;"&gt;2013&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="article.php?year=2012&amp;category=&lt;?=$_GET['category']?&gt;"&gt;2012&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="article.php?year=2011&amp;category=&lt;?=$_GET['category']?&gt;"&gt;2011&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="article.php?year=2010&amp;category=&lt;?=$_GET['category']?&gt;"&gt;2010&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;/ul&gt; &lt;ul class="archive"&gt; &lt;li&gt; &lt;div&gt;Category&lt;/div&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="?category=all&amp;year=&lt;?=$_GET['year']?&gt;"&gt;General news&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="article.php?category=sport&amp;year=&lt;?=$_GET['year']?&gt;"&gt;Sport news&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="article.php?category=international&amp;year=&lt;?=$_GET['year']?&gt;"&gt;International news&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="article.php?category=national&amp;year=&lt;?=$_GET['year']?&gt;"&gt;National news&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;/ul&gt; </code></pre> <p>Anyway I reccomend that you build some sort of automatic menù generator, so you can add parameters and links without too much effort, for example via a "link generator" which will append the needed parameters (I'll put in a snippet for this if you need).</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload