php - Hide/show form for a particular user -


i wan't show particular form admin user, wan't hide form other users. have tried evrything doesn't work.

code:

<?php if($user_profile['id']=='562004018'){ ?> //show form user             <div class="span4">             <form method="post" action="">                 <fieldset>                 <legend>make new project</legend>                     <label>title</label>                     <input type="text" name="project_naam" placeholder="put here project name...">                     <input name="submit" type="submitproject" class="btn" value="save">                 </fieldset>                 </div>         <?php  } else {?>         <div class="noscript">         <div class="span4">              <form method="post" action=""> // hide form kind of users                 <fieldset>                 <legend>make new project</legend>                     <label>title</label>                     <input type="text" name="project_naam" placeholder="put here project name...">                     <input name="submit" type="submitproject" class="btn" value="save">                 </fieldset>                 </div>                 </div>         <?php } ?> 

code:

 <style>     .noscript      {      visibility: hidden;      }    </style> 


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -