How to store check box values in php sessions?
Hi all i got a few checkboxes and i let the user to select a few of them and then click a submit button. I want store the value of select checkbox in sessions and later one use them. could any one show me how i can do that.Thanks
Code:
<form action="./write.php" method=post >
<input type="checkbox" name="id" value="1"
<input type="checkbox" name="id" value="2"
<input type="checkbox" name="id" value="3"
<input type="submit" value="Add this/these Songs to my PlayList" name="B1">
Re: How to store check box values in php sessions?
OK.
Firstly the correct version fo the code you posted above is
Code:
<form action="./write.php" method="post">
<input type="checkbox" name="id" value="1" />
<input type="checkbox" name="id" value="2" />
<input type="checkbox" name="id" value="3" />
<input type="submit" value="Add this/these Songs to my PlayList" name="B1" />
</form>
Now I suggest you read this, it should provide you with the inslight you need :)
Cheers,
Ryan Jones