This is an embarrasing question because it is way too simple but I have looked in the php manual, googled and searched, even read my HTML textbook and got nowhere 🙁.
Using a POST statement with a checkbox eg
<form action='debugformdot.php' method='post'>
<p><input type='checkbox' name='test.gif' id='test.gif' />test.gif</p>
The POST address in the receiving script becomes $POST['test_gif'], with value "on" ie in the file-name "." changes to "". I have tried different enctypes in the form statement to no avail. I made a workaround that was fine involving converting the "." to "/" and then back again later but decided today it would be better to learn by resolving the fundamental problem instead.
I am using that checkbox to pass a pre-selected file-name via it's key. Maybe that is the mistake and I need to pass the file name as the value but that approach doesn't work as well on the other end.
Any suggestions as to what I should be doing.
Andrew