473,406 Members | 2,369 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

multiple option in checkbox

for passing on multiple values through a variable, i used the following command within a form

Expand|Select|Wrap|Line Numbers
  1. $query = "SELECT * FROM case_query where case_no='$case_no'";
  2. $result = mysql_query($query);
  3. while($row = mysql_fetch_array($result))
  4. {
  5. extract($row);
  6. // queue_owner and query_id are the fields in table case_query
  7.  echo "<tr><td ><input type='checkbox' name='C1'  value='$queue_owner'></td><td >$query_id</td><td>$queue_owner</td><td><input type='text'  name='reference'></td></tr>";
  8. }
now When i submit and check 2 boxes (say)....i get only d values for last box....also value by the name "reference" comes blank
can u help?
Mar 5 '11 #1
1 1253
Dormilich
8,658 Expert Mod 8TB
now When i submit and check 2 boxes (say)....i get only d values for last box
of course you do, the last one overrides the previous ones if the have the same name. you can create an array by using [] in the name: <input name="exampe[]">


also value by the name "reference" comes blank
if there is no text put into the field, of course.
Mar 5 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: RC | last post by:
I am try test a simple HTML form with PHP <form method=POST action="testing.php"> Cat <input type="checkbox" name="pet" value="cat"> Dog <input type="checkbox" name="pet" value="dog"> Pig...
3
by: Tim Williams | last post by:
Hi. I'm using Python 2.3 and trying to use tkFileDialog to get a list of files. I get a message about the '-multiple' option is not a valid option in the call to Open. Python 2.3 (#1, Aug ...
2
by: areef.islam | last post by:
Hi, I am kinda new to javascript and I am having this problem with selecting multiple options from a select tag. Hope someone can help me out here. here is my code...
12
by: Florian Lindner | last post by:
Hello, since ConfigParser does not seem to support multiple times the same option name, like: dir="/home/florian" dir="/home/john" dir="/home/whoever" (only the last one is read in)
3
by: gyap88 | last post by:
My search engine in visual basic 2005 has 4 textbox for users to input values, named textbox1,textbox2,textbox3,textbox4. I have a string assigned to each of the textbox named...
2
by: charlesp | last post by:
like i have career(for example) i need list menu for that particular career given
2
by: ckrows | last post by:
I am attempting to create a report off of 6 option groups. Each option group is a Y or N response, populating a 1 or 2 in the tables. i want to report the number a word on the report, I chose the...
1
Claus Mygind
by: Claus Mygind | last post by:
I have a <div> which defines my menu bar. I would like for this <div> to stay fixed. On the menu bar I have a list box. When the list box is set for single selection, the drop down list of...
1
by: shirleymichael7 | last post by:
I am writing a VB6 web program for a Survey web site. They want 10 questions with each having 10 possible option buttons the user can select (like 1 is don't like, 5 is neither like or dislike,...
0
by: neelsbr | last post by:
hi, i have a doubt.can i use shortcut key for each option box in my form.please any one know reply me quickly. thanks i advance
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.