Php forums with tickboxes

SpaceshipSpaceship
Watch

liam_d

The original NP Emo KidEstablished Member
Impact
25
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?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
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:
0
•••
yeah i tried it and it works...:)
 
0
•••
CatchedCatched

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back