I have a form with check boxes, but if some of the check boxes I are not checked I get undefined index is there a why around this please help. I am using $_POST. :-/
mundetas
0
Light Poster
Recommended Answers
Jump to PostOnly the check box that is checked will be sent so you can check if it is set like below
if(isset($_POST['check-box-1'])){ //Do something }
Jump to Post'check-box-1' thats the name of the check box right.
From my experience yes it is.
All 5 Replies
sureronald
0
Junior Poster
mundetas
0
Light Poster
cwarn23
387
Occupation: Genius
Team Colleague
Featured Poster
mundetas
0
Light Poster
mundetas
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.