View Full Version : How to store check box values in php sessions?


tony007
02-21-2006, 07:03 PM
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


<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">

Kodo
02-22-2006, 04:25 AM
Tony, the questions you are asking are questions on common tasks in web development; however, if you are asking questions at these points, then I highly recommend purchasing a book on your topics (PHP appears to be what you're using judging from your other posts). You really need to have a better foundation or I'm afraid the answers we provide may not make sense to you. That forces us to essentially "Re-write the book" as we "teach" you how to do these things.
http://www.amazon.com/gp/product/0764579665/qid=1140614666/sr=2-1/ref=pd_bbs_b_2_1/104-9781728-7658337?s=books&v=glance&n=283155