title: passing URL parameters using buttons
body: <p>how do i use the onclick function when using parameters or is there any other alternative, before i was using anchor links which works but now since i changed it to input type button, instead of just button and using anchor links, it wont work it clicks but not redirecting.</p>
  
  <p>here is an example of my button</p>
  
  <pre><code>echo "&lt;input type='button' class='btn btn-success' onclick='window.location='../../includes/userordersummary.php?orderid=".$row['orderid']."&amp;serial=".$row['serial']."'' value='View Order'&gt;";
  </code></pre>
  
  <p>please note that i am using echo.</p>