hi,
I ve form with checkbox in php.

<input checked="true" type='checkbox' name="checkbox" />
<input type="hidden" name="id" value="deger" />

as we see , this code send "id=deger"...
but I want this : if user uncheck checkbox, then it wont send "id= deger"

how can I do this ?

Try setting name="id" and value="deger" for the checkbox.
(Or you could set an onclick for the checkbox, but that sounds like a waste of resources to me.)

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.