Results 1 to 2 of 2
hi
i want to use checkbox in php. i have function for each check should be running when this box is selected.how i can do this....
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-17-2008 #1Just Joined!
- Join Date
- Apr 2008
- Posts
- 38
checkbox in php
hi
i want to use checkbox in php. i have function for each check should be running when this box is selected.how i can do this.
- 07-10-2008 #2
create 2 file for this.
1.file index.html
2.file post.phpCode:<html> <form method='post' action='post.php' a> <input type='checkbox' name='one'>one <input type='checkbox' name='two'>two </form> </html>
Code:<?php $one=$_POST['one']; $two=$_POST['two']; if($one) { /*call function one*/ } if($two) { /*call function two*/ } ?>


Reply With Quote

