title: Onclick function is not working when i use GET variable to pass data to another page using php
body: <p>Why is my onclick function is not working when i entered a page that has GET variable?</p>
  <p>I have a simple onclick javascript function on my page button which is to show the custom modal i created, and it's working fine unless i entered to a page i made that has GET variable such as:</p>
  <pre><code>http://mywebsite.com/page3.php?variable=45
  </code></pre>
  <p>Let me show you my simple onclick function if there's an error.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function customShow() {
    document.getElementById("cusModal").style.display = "block";
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;button onclick="customShow()"&gt;Show Modal&lt;/button&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>Those code is working fine if i'm only at the page that has not GET variable such as:</p>
  <pre><code>http://mywebsite.com/page2.php
  </code></pre>
  <p>I know i can fix this using SESSION for variable that need to pass data to another page, but i wanted ask some help here if there's a possible way to make the onclick funtion work?</p>