Expand|Select|Wrap|Line Numbers
- <form method="post" action="">
- <div align="left">
- <p align="left">
- <input type="checkbox" name="BMK81A" value="BMK81A" > 1. BMK81A <br>
- <input type="checkbox" name="BMK81" value="BMK81" >
- 2. BMK81 <br>
- <input type="checkbox" name="DL3" value="DL3" >
- 3. JPN-DL-3 / JPN-DL-4 <br>
- <input type="checkbox" name="DL2" value="DL2" >
- 4. JPN-DL-2 <br>
- <input type="checkbox" name="DL1" value="DL1" >
- 5. JPN-DL-1 <br>
- </div>
- </form>
Now code for insert into database:
Expand|Select|Wrap|Line Numbers
- $insert_data7=mysql_query(" INSERT into docu (BMK81A,BMK81,DL3,DL2,DL1) VALUES ('$BMK81A','$BMK81','$DL3','$DL2','$DL1') ") or die(mysql_error());
At database when to store the value of checkbox it become like this: i can't insert the image to show
-| BMK81A | BMK81 | DL3 | DL2 | DL1
| | BMK81 | | DL2 |
As you guys can see graph.... if user make a selection of checkbox and the value has been insert into database. after that, what I want is to make it display the description of "DOCUMENT"..
Let me explain clearly.. I have second table in database named name_Document which is has field of CODE and DESC.. EXAMPLE:
CODE | DESC : DL2 | JPN-DL-2 DL3 | JPN-DL-3/JPN-DL-4 and so on...
So now if user make a selection at form. i want it can be display..when data has insert into database..it will refer to second table to call for a description...can anyone help me?:'( please help me..:'(
For better understanding:
What I want is from table one value of checkbox has inserted. Then part of displayed, ,it will refer from table two for code and description if true..means.. if BMK81A succeeded insert into database, I just want the description of BMK81A will be appear. Only the value of checkbox that inserted will appear to be displayed. help me..