mardi 21 février 2017

PHP If statement in html form

I have the following form but would like to add a condition so that only managers can see 'clear' option.

<form action="vision_ref.php" method="post">
With selected: 
<select name='multi'>
<option value='now'>Set next action time to now</option>
<option value='clear'>Remove the ticket</option>
<option value='unassign'>Unassign Specialist</option>
<option value='priority'>Toggle Priority</option>
</select>
<input type="submit" value="Go!">
</form>

Something like: if(havePriv('grp_mgr'))

Aucun commentaire:

Enregistrer un commentaire