Skip to content

Run Correct Button Function In HTML

Mattymoo142 edited this page Jul 10, 2016 · 1 revision

Hello, so you want to run either Logoutbutton(); or Loginbutton(); in html so it displays in the correct place? Here's how!

<?php echo (isset($_SESSION['steamid'])) ? logoutbutton() : loginbutton(); ?>

Now place that where you want the button to appear. Voila!

Clone this wiki locally