|
|
#1 (permalink) |
|
Diamond Member
![]() Join Date: May 2005
Location: here
Age: 22
Posts: 1,017
|
Hello all,
I am building an application (web),and I am designing a form,using HTML, I'd checkboxes , I am using isset to enter the data into the database, how can I know if the user has checked or not the checkbox (using checked property), how would I enter that into database?> I am using the type of that field as binary? is that correct Thanks in advance
__________________
TechNoloGy ConTrols tHe World AnD I conTroL the TecHnOl0gy Gue$s WhO @m i. HehEhehee :confused: |
|
|
|
|
|
#2 (permalink) |
|
Moderator
![]() Join Date: Dec 2004
Location: Canada
Age: 25
Posts: 10,117
|
Only checkboxes that have been checked are passed though.
Code:
<input type="checkbox" name="example" value="opt1" /><br /> <input type="checkbox" name="example" value="opt2" /> Storing the checked/not checked in a binary (boolean) field is a good way.
__________________
You know what the chain of command is? It's the chain I go get and beat you with 'til ya understand who's in ruttin' command here. I must plug a couple comics because they are good :D: www.ctrlaltdel-online.com www.userfriendly.org |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP isset question | houssam_ballout | General Software | 1 | 06-14-2007 03:51 AM |
| php question | houssam_ballout | General Software | 1 | 04-13-2007 08:43 PM |
| php question 2 | houssam_ballout | General Software | 0 | 09-12-2006 05:19 PM |
| Server running Apache 2.2.2 - Setting Up PHP | jbrown456 | General Computer Chat | 3 | 08-21-2006 11:23 PM |
| PHP under "Microsoft FTP Service (version 5.0)" ?? | DARKGuy | General Software | 0 | 01-19-2006 09:29 PM |