<?php if ($usertype=='admin'){
  echo '<br> <input type="button" value="Edit Users" onclick="window.location.href='userlist.php'"><br>';
  } ?>
this is ithe code.. Works fine without the url
    <?php if ($usertype=='admin'){
  echo '<br> <input type="button" value="Edit Users" onclick="window.location.href='userlist.php'"><br>';
  } ?>
this is ithe code.. Works fine without the url
 
    
     <?php 
 if ($usertype =='admin' ){
  ?>
 <input type="button" value="Edit Users" onclick="window.location.href='userlist.php'">
 <?php
  } 
?>
NOTE: Please Use https://phpcodechecker.com/
For Syntax Check and For check custom common errors
