![]() |
| |||||||
| Sponsored Links |
![]() |
| | LinkBack | Thread Tools | Display Modes |
|
#1
| |||
| |||
| Hi, I have 7 checkboxes. If the user selects the other one they enter some value in the textbox Code: <input type="checkbox" name="question1" id="question1" value"1">1 <input type="checkbox" name="question2" id="question2" value"2">2 <input type="checkbox" name="question3" id="question3" value"3">3 <input type="checkbox" name="question4" id="question4" value"4">4 <input type="checkbox" name="question5" id="question5" value"5">5 <input type="checkbox" name="question6" id="question6" value"6">6 <input type="checkbox" name="Other" id="Other" value"Other">Other <input type="text" name="othertxt" id="othertxt" value=""> so if someone selects 3,5 the data should be added like this 3,5 if someone selects 1,5, Other Then the data should be added as 1,5, Other - some text can someone tell me how i can make my string to add the data in the table whats the easiest way to check if the checkbox was clicked or not todd Last edited by todd2006; June 19th, 2008 at 01:14 PM. |
| Sponsored Links |
|
#2
| ||||
| ||||
| why are all the values 1 ? |
|
#3
| |||
| |||
| sorry the post is updated |
|
#4
| ||||
| ||||
| Before we go too far down a wrong road and can't turn around, what are you going to do with the comma string?
__________________ Wolffy ------------------------ Opinions expressed are my own and do not necessity reflect those of any sane person. Any code provided is intended to be an example and is provided AS IS. Rework for your specific environment may be required. Void where prohibited by law. Not valid in California. Your mileage may vary. |
|
#5
| ||||
| ||||
| Quote:
__________________ jmurrayhead If you agree with me... click the icon! If my post solved your problem, click the button in the lower right-hand corner of the post.If you like it here...throw us a few bones to help support us. Join our Folding team: DeveloperBarn Folding |
|
#6
| |||
| |||
| I just want the data to be stored in one field |
|
#7
| ||||
| ||||
| Thought so. Again, you shouldn't store multiple values in a field. Period. What is you intention for these numbers once stored? |
|
#8
| |||
| |||
| thats how the client wants it i explained its not good but hey they want it in that way my only problem is how to find if there was a comma at the end of the string and if there is a comma remove it |
|
#9
| ||||
| ||||
| Quote:
Quote:
|
|
#10
| ||||
| ||||
| Ditto |
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| checkbox validation | todd2006 | JavaScript Programming | 3 | June 18th, 2008 07:22 PM |
| display problem checkbox | todd2006 | JavaScript Programming | 4 | May 30th, 2008 03:58 PM |