Jump to content

Can you make a control invisible in PHP code


Leftfield

Recommended Posts

if you want the button to be 'invisible', don't send the button HTML it to the browser.

 

<?php
if ($somecondition == 'met') {
     // show button
     echo "<input type='submit' name='somebutton' value='hello world'>";
} else {
    // Don't show button
}
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.