hi im attempting to keep a group of tick boxes ticked after i refresh the browser in been through the forums trying different solutions but anything ive tried doesnt work if anyone has a solution to this be much grateful
index.php
<?php
session_start();
include ('connect.php');
?>
<div class="main">
<h2>PHP: Get Values of Multiple Checked Checkboxes</h2><hr/>
<form action="php_checkbox.php" method="post">
<label class="heading">Select Your Technical Exposure:</label><br/><br/>
<input type="checkbox" name="check_list[]" value="C/C++"><label>C/C++</label><br/>
<input type="checkbox" name="check_list[]" value="Java"><label>Java</label><br/>
<input type="checkbox" name="check_list[]" value="PHP"><label>PHP</label><br/>
<input type="checkbox" name="check_list[]" value="HTML/CSS"><label>HTML/CSS</label><br/>
<input type="checkbox" name="check_list[]" value="UNIX/LINUX"><label>UNIX/LINUX</label><br/><br/>
<input type="submit" name="submit" Value="Submit"/>
<!-----Including PHP Script----->
<?php include 'checkbox_value.php';?>
</form>
</div>
processing form
<?php
session_start();
include ('connect.php');
?>
<?php
if(isset($_POST['submit'])){
if(!empty($_POST['check_list'])) {
//Counting number of checked checkboxes
$checked_count = count($_POST['check_list']);
echo "You have selected following ".$checked_count." option(s): <br/>";
//Loop to store and display values of individual checked checkbox
foreach($_POST['check_list'] as $selected) {
echo "<p>".$selected ."</p>";
}
echo "<br/><b>Note :</b> <span>Similarily, You Can Also Perform CRUD Operations using These Selected Values.</span>";
}
else{
echo "<b>Please Select Atleast One Option.</b>";
}
}
?>
ty jan