i'v created a registration form with all validations but i don't know how to validate a checkbox to hide/active submit button as per checkbox value is checked or not.
can anybody help me to solve this......?
plz reply me on [snipped]

Member Avatar for jmichae3
if (isset($_POST['zap']) && ""!=$_POST['zap']) {
    //  you have valid data in $_POST[] or $_GET[] for a checkbox.
}
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.