<form action="?" method="post">
  <p>
    <label>Password</label>
    <input type="password" name="pwd" />
  </p>
  <p>
    <input type="hidden" name="token" value="<?php echo genToken();?>"/>
    <input type="hidden" name="p" value="admin" />
    <input type="submit">
  </p>
</form>