I am trying to hide a radio button based on wether or not a user is an admin
<?php
if (($_SESSION['admin']) == 0) ?>
<script>document.getElementById('adminbutton').style.display = 'none' </script>
<?php
if (($_SESSION['admin']) == 1) ?>
<script>document.getElementById('adminbutton').style.display = 'block' </script>
Obviously the above doesn't work.. Any help is, as usual, greatly appreciated.
Thanks