Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

Php forums with tickboxes

Namecheap AuctionsNamecheap Auctions
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
Close
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
Close
yeah i tried it and it works...:)
 
0
Close
CatchedCatched

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back