skip to Main Content

Optimized JavaScript Random Strings With Key-Value Pairs/For Loop

var crustType = ["wheat", "hand tossed", "deep dish"]; var crustTypeArr = crustType[Math.floor(Math.random() * crustType.length)]; var sauceType = ["marinara", "tomato", "none"]; var sauceTypeArr = sauceType[Math.floor(Math.random() * sauceType.length)]; var cheeses = ["mozarella", "cheddar", "feta"]; var chessesArr = cheeses[Math.floor(Math.random() * cheeses.length)]; var toppings…

VIEW QUESTION

echo an SQL row for each using a checkbox and a submit button – PHP

I will simplify the code in order to highlight what I need: <form id="highlighttable" name=form1 method="POST"> <div class="form-group"> <button name="save_multicheckbox" class="btn-primary">Save Checkbox</button> </div> <?php if(isset($_POST['save_multicheckbox'])){ echo "<p>yes</p>"; $checklist = $_POST['ckb']; foreach($checklist as $list) { echo "<p>as</p>"; } } ?> <table>…

VIEW QUESTION
Back To Top
Search