If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > PHP > multiple check boxes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-18-10, 16:06
don_log don_log is offline
Registered User
 
Join Date: Jun 2008
Location: pakistan
Posts: 109
multiple check boxes

i want to submit multiple check boxes as generate with records such like that

std_id std_fees std_class std_dues std_tfees
1 2000 12 0 here check box
and same like this more records will came from std_fees_stg table

now every check box have different value came from table but if it select multiple check boxes to take multiple fees how it will done

suppose sql query i write like this

insert into std_fees (std_id,std_class,std_dues,std_fees) data will came from std_fees_stg table where std_tfees=here is multiple check box values came from table but i don't know how to do that
Reply With Quote
  #2 (permalink)  
Old 06-18-10, 16:29
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,262
so you set each chedck box depending on the table data
when you handle the form / user inpout you examine the value of each checkbox and update the data as appropriate

a web control comprises various elements one si the value another is the name.
for a check box the value is checked or not
the google reference should given to you before should give you enough to at least make an effort
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #3 (permalink)  
Old 06-19-10, 09:01
don_log don_log is offline
Registered User
 
Join Date: Jun 2008
Location: pakistan
Posts: 109
Quote:
Originally Posted by healdem View Post
so you set each chedck box depending on the table data
when you handle the form / user inpout you examine the value of each checkbox and update the data as appropriate

a web control comprises various elements one si the value another is the name.
for a check box the value is checked or not
the google reference should given to you before should give you enough to at least make an effort

user just only fee that it has june month but i want that when user check june month fee it take june month fee and add to the table
but when user check the multiple chekboxes of student fee like june,july,august
then it will get parse the data from check boxes and save it in the table
again say just check boxes are use to make condition

insert into this table values (value1,value2,value3) where feecode= here the user submit one check box or multiple check box which have attach feecode
to submit multiple feeses
i think it has use loop but don't know how to insert data using loop
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On