Firstly, it is not illegal to assign other variables to values from $_POST. Example:
$count = $_POST['count_cl'];
If you are using the same post value twice or more, you should definitely consider doing this for readability purposes.
Secondly, you should ABSOLUTELY NOT use barewords as literal strings. Quote them instead.
I'd strongly recommend that you look at your PHP error log frequently during development. Try to ensure that your application runs with no PHP notices or warnings during normal operation. This will ensure that if unexpected behaviour happens, it is noticed more easily.
If something you're doing causes a warning when it's running properly, suppress it using @
Mark