I am trying to create a small availability calendar using text files.
I have managed to write the input from 5 checkboxes in the user form to a text file.
The data in the text file is stored in the following manner when I look inside it.
checked,checked,checked,,checked
(When you see ,, it means a user did not check the box therefore nothing is written to the text file.
I would like to know how I can read and split the contents of the text file and assign each word checked to a variable for example
$jan1=checked;
$jan2=checked;
$jan3=checked;
$jan4=;
$jan5=checked;
I can then do a simple if / else statement on the variables to see which checkboxes were checked by the user on the form and display the output.
Thank you for your help.