Php forums with tickboxes

SpaceshipSpaceship
SpaceshipSpaceship
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.
GoDaddyGoDaddy
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
Escrowly
CryptoExchange.com
Domain Recover

NamePros updates

New in Parking: updated way to act on many domains or inquiries at once
Your domain list and inquiry list now have a bar above and below the list. Check the items you want, then choose an action in the bar...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back