pvpradeepraghav Posted May 1, 2008 Share Posted May 1, 2008 i having one doubt about changing of activate to inactivate icons.when a person is registerd ,the icon should show that he is in activate state,if i want to inactive the person and click active it has to change into inactive state and the link should show that it is in inactive and if i click inactive again it should show active again.active/inactive should be in hyperlink mode.the change of active and inactive link should be in one state for eg: Active/Inactive --> it shuold not be like this. it has to dispaly only one link i.e.,active or it has to display inactive.please help me. how to do it. Quote Link to comment https://forums.phpfreaks.com/topic/103676-how-to-make-the-activate-icon-inactive-in-php/ Share on other sites More sharing options...
Daniel0 Posted May 1, 2008 Share Posted May 1, 2008 <?php if ($isActive) { echo 'Active'; } else { echo 'Inactive'; } ?> or <?php echo $isActive ? 'Active' : 'Inactive'; ?> Quote Link to comment https://forums.phpfreaks.com/topic/103676-how-to-make-the-activate-icon-inactive-in-php/#findComment-530870 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.