I'm using an input tag for a checkbox. If someone checks the box, I want the value put into a session variable. My input box is as follows:
echo "<input type = \"checkbox\" name = \"$deleteitem\" value=1 >";
I want to put it in the session array: $_SESSION["deleteitem"][$i]
It won't let me use that for the name in the input statement.
I also have a submit button that takes me to another script, but I can't capture the value. I've tried registering it the old way with session_register("$deleteitem" But it still doesn't work.
Thanks for any help you can give me.
echo "<input type = \"checkbox\" name = \"$deleteitem\" value=1 >";
I want to put it in the session array: $_SESSION["deleteitem"][$i]
It won't let me use that for the name in the input statement.
I also have a submit button that takes me to another script, but I can't capture the value. I've tried registering it the old way with session_register("$deleteitem" But it still doesn't work.
Thanks for any help you can give me.