liam_d The original NP Emo KidEstablished Member ★ 20 ★ Impact 25 Mar 20, 2005 696 views 2 replies #1 Hi all just a quick question; How do you check in php if a tickbox is select or not? Would you just use say this like other input boxes? PHP: isset($_POST['tickbox']) - would that work or no?
Hi all just a quick question; How do you check in php if a tickbox is select or not? Would you just use say this like other input boxes? PHP: isset($_POST['tickbox']) - would that work or no?
PoorDoggie Soon to be RICHdoggie!VIP Member VIP ★ 20 ★ Impact 18 Mar 20, 2005 #2 sorry... ignore my last post - what you have: PHP: isset($_POST['tickbox']) checks to see if it exists - isset() sees whether the variable is there or not... you want: PHP: if( $_POST['tickbox'] ){ // tickbox selected } else{ //tickbox not } Last edited: Mar 20, 2005
sorry... ignore my last post - what you have: PHP: isset($_POST['tickbox']) checks to see if it exists - isset() sees whether the variable is there or not... you want: PHP: if( $_POST['tickbox'] ){ // tickbox selected } else{ //tickbox not }
liam_d The original NP Emo KidEstablished Member ★ 20 ★ Impact 25 Mar 20, 2005 #3 yeah i tried it and it works...