l107/PO php/wijzigen.html

<?php include('menubalk.php'); include('db.php'); ?> <!DOCTYPE html> <html lang="en"> <head> <script src="Ajax/ajax.js"></script> <script> window.onload = check /*function setEvents(){ document.getElementById('toevoegKnop').onclick = latenZien } function latenZien(){ //var auteurnr =this.options[this.selectedIndex].value; //document.location='Ajax/AjaxWijzigen.php'; ajax('Ajax/AjaxWijzigen.php','toevoegen') }*/ function check(){ if(document.getElementById('box1').checked){ document.getElementById('verdwijndiv').style.display= 'block'; } else { document.getElementById('verdwijndiv').style.display= 'none'; } } </script> <link rel="stylesheet" href="style.css"> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <h3>Wil je data toevoegen of verwijderen?</h3> <button id="toevoegKnop">Toevoegen</button> <button id="verwijderKnop">Verwijderen</button> <div> <span class="veld"></span> <select> <option></option> <option>Toevoegen</option> <option>Wijzigen</option> <option>Verwijderen</option> </select> </div> <?php echo "<div id='toevoegen'></div>"; echo "<div id='verwijderen'></div>"; echo '<div><span class="veld"></span><input type="checkbox" value="1" id="box1" onchange="check()"><label for="box1" id="checkbox">Ja</label></div>'; echo '<div id="verdwijndiv"><span class="veld">Waarheen : </span><input type="text" id="namen"></div>'; ?> </body> </html>

Resultaat

Made by Thijs Aarnoudse