title: ONclick button, two expressions , getting errors in ELSE statement but works in if statement
body: <p>In an onclick button I am passing two expressions separated by a comma. The buttons are part of a PHP <code>IF ELSE</code> statement. There is one button that appears in the <code>IF</code> part of the statement. It also passes two expressions. This button works well. Here is the <code>HTML</code> code for the first button:</p>
  <pre><code>&lt;button id='Search' class='button btn' onclick='Search($tbl_id, $cid)'&gt;&lt;i class='icon fas fa-globe'&gt;&lt;/i&gt;&lt;/button&gt;&quot; 
  </code></pre>
  <p>In the <code>ELSE</code> part of the statement I have another button that needs to also pass two expressions. However with this button I am getting a console error of</p>
  <blockquote>
  <p><code>expected expression, got ','</code>.</p>
  </blockquote>
  <p>This confuses me since the exact same <code>HTML</code> with two expressions works just fine in the <code>IF</code> part of the statement. I have narrowed down the error to being in the <code>HTML</code> by removing the <code>AJAX</code> and still getting the error here. Here is the <code>HTML</code> for the button in the <code>ELSE</code> portion of the statement.</p>
  <pre><code>&lt;button id='largerSearch' class='button btn' onclick='largerSearch($tbl_id, $cid)'&gt;Search for alternative &lt;i class='seated-icon fas fa-globe'&gt;&lt;/i&gt;&lt;/button&gt;&quot; 
  </code></pre>
  <p>If I remove the comma and remove on expression, then it works fine.</p>
  <p>Why does the exact same <code>HTML</code> work and successfully pass two expressions in the IF portion of the statement and fail in the <code>ELSE</code> portion of the statement?</p>