I'm trying to create a bunch of checkboxes that pass information to a php script in code.
When "Page1" is checked, I need a php variable $page1 to be set equal to false. The same for Page2 and Page3. When the button is clicked, a php variable $run becomes set equal to true.
Code:<form name="myform" action="" method="POST"> <div align="center"><br> <input type="checkbox" name="option1" value="Page1"> Page1<br> <input type="checkbox" name="option2" value="Page2" checked> Page2<br> <input type="checkbox" name="option3" value="Page3"> Page3<br> <br> </div> </form> <button type="button">Click Here</button>


Reply With Quote
Bookmarks