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.
here is an example of my button
echo "<input type='button' class='btn btn-success' onclick='window.location='../../includes/userordersummary.php?orderid=".$row['orderid']."&serial=".$row['serial']."'' value='View Order'>";
please note that i am using echo.
echois not a used in javascript or html. Are you using PHP?