in-php-script-mit-javascript-elemente-ausblenden.php
Quell Code
<table id="tab" border="1"> <tr><td>Ich</td><th>werde</td><td>mit Javasript</td><td>auf display none gesetzt</td><tr> </table> <?php if(isset($_POST['suche'])) { if(empty($_POST['suche'])){ }else{ ?> <script>document.getElementById('tab').style.display='none';</script> <p>Javascript have kill the table</p> <?php } } ?> <form action="" method="POST"> <input name="suche" type="text"> <input type="submit"> </form>