Witam mam problem z checkboxami. Napisałem już kod strony ale niestety nie działa czy checkbox jest zaznaczony sad.gif proszę o pomoc podaje kod:

  1. <meta http-equiv="Content-Language" content="pl">
  2. <meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
  3. <style type="text/css">
  4. html{height:100%;background:black}
  5. body{min-height:100%;position:relative;width:625px;background:black;margin:0 auto}
  6. #foot{position:absolute;height:20px;background:gray;bottom:0;left:0;width:100%}
  7. #cont{padding-bottom:25px}
  8. <!--[if lte IE 7]>
  9. <style type="text/css">body{height:100%}</style>
  10. <![endif]-->
  11. </head>
  12.  
  13.  
  14. <font face="Rockwell Extra Bold" color="#4d4d4dff" size="7"><b><center>Curriculum Vitae</center></b></font></br>
  15. <center><font color="white">
  16. Witamy w kreatorzy CV bez zdjęcia. <big><font color="red">Wybierz co chcesz mieć w CV:</font></big> <br><br>
  17. </font>
  18.  
  19. <tr>
  20. <td>
  21. <form action="?" method="POST">
  22. <input type="checkbox" name="1" value="1"><font color="white"> Dane personalne</font>
  23. </form>
  24. </td>
  25. <td>
  26. <font color="white">(Co to jest <a href=".html"><font color="red">?</font></a>)</font>
  27. </td>
  28. </tr>
  29. <tr>
  30. <td>
  31. <form action="?" method="POST">
  32. <input type="checkbox" value="1" name="2"><font color="white"> Wykształcenie</font>
  33. </form>
  34. </td>
  35. <td>
  36. <font color="white">(Co to jest <a href=".html"><font color="red">?</font></a>)</font>
  37. </td>
  38. </tr>
  39. <tr>
  40. <td>
  41. <form action="?" method="POST">
  42. <input type="checkbox" value="1" name="3"><font color="white"> Szkolenie uzupełniające</font>
  43. </form>
  44. </td>
  45. <td>
  46. <font color="white">(Co to jest <a href=".html"><font color="red">?</font></a>)</font>
  47. </td>
  48. </tr>
  49. <tr>
  50. <td>
  51. <form action="?" method="POST">
  52. <input type="checkbox" value="1" name="4"><font color="white"> Doświadczenie zawodowe</font>
  53. </form>
  54. </td>
  55. <td>
  56. <font color="white">(Co to jest <a href=".html"><font color="red">?</font></a>)</font>
  57. </td>
  58. </tr>
  59. <tr>
  60. <td>
  61. <form action="?" method="POST">
  62. <input type="checkbox" value="1" name="5"><font color="white"> Dodatkowe umiejętności</font>
  63. </form>
  64. </td>
  65. <td>
  66. <font color="white">(Co to jest <a href=".html"><font color="red">?</font></a>)</font>
  67. </td>
  68. </tr>
  69. <tr>
  70. <td>
  71. <form action="?" method="POST">
  72. <input type="checkbox" value="1" name="6"><font color="white"> Zainteresowania</font>
  73. </form>
  74. </td>
  75. <td>
  76. <font color="white">(Co to jest <a href=".html"><font color="red">?</font></a>)</font>
  77. </td>
  78. </tr>
  79. <tr>
  80. <td>
  81. <form action="?" method="POST">
  82. <input type="checkbox" value="1" name="7"><font color="white"> Języki obce</font>
  83. </form>
  84. </td>
  85. <td>
  86. <font color="white">(Co to jest <a href=".html"><font color="red">?</font></a>)</font>
  87. </td>
  88. </tr>
  89. <tr>
  90. <td>
  91. <form action="?" method="POST">
  92. <input type="checkbox" value="1" name="8"><font color="white"> Dodatkowo początek</font>
  93. </form>
  94. </td>
  95. <td>
  96. <font color="white">(Co to jest <a href=".html"><font color="red">?</font></a>)</font>
  97. </td>
  98. </tr>
  99. <form action="?" method="POST">
  100. <input type="submit" name="send" value="OK" />
  101. </form>
  102.  
  103.  
  104. <div id="foot"><font size="2"><center>Wszelkie prawa zastrzeżone. Power by <font color="red">GruchaNerka</font></font></center></div>
  105. </body>
  106.  
  107. </html>
  108.  


  1.  
  2. <pre><?php
  3. //początek 1
  4. echo '<font color=white>Wybrałeś opcje: </font><br />';
  5. if(isset($_POST['1']))
  6. {
  7. echo '<font color=white>Dane personalne </font><br />';
  8. // Inne operacje
  9. } // End if
  10.  
  11. if (empty($_POST['1'])) {
  12. echo '';
  13. } elseif (isset($_POST['1']) && $_POST['1'] == 1) {
  14. echo '<font color=white>Dane personalne </font><br />';
  15. }
  16. //koniec 1
  17.  
  18. //początek 2
  19. if (empty($_POST['2'])) {
  20. echo '';
  21. } elseif (isset($_POST['2']) && $_POST['2'] == 1) {
  22. echo 'Wykształcenie <br />';
  23. }
  24. //koniec 2
  25.  
  26. //początek 3
  27. if (empty($_POST['checkbox'])) {
  28. echo '';
  29. } elseif (isset($_POST['checkbox']) && $_POST['checkbox'] == 1) {
  30. echo 'Szkolenia uzupełniające <br />';
  31. }
  32. //koniec 3
  33.  
  34. //początek 4
  35. if (empty($_POST['checkbox'])) {
  36. echo '';
  37. } elseif (isset($_POST['checkbox']) && $_POST['checkbox'] == 1) {
  38. echo 'Doświadczenie zawodowe <br />';
  39. }
  40. //koniec 4
  41.  
  42. //początek 5
  43. if (empty($_POST['checkbox'])) {
  44. echo '';
  45. } elseif (isset($_POST['checkbox']) && $_POST['checkbox'] == 1) {
  46. echo 'Dodatkowe umiejętności <br />';
  47. }
  48. //koniec 5
  49.  
  50. //początek 6
  51. if (empty($_POST['checkbox'])) {
  52. echo '';
  53. } elseif (isset($_POST['checkbox']) && $_POST['checkbox'] == 1) {
  54. echo 'Zainteresowania <br />';
  55. }
  56. //koniec 6
  57.  
  58. //początek 7
  59. if (empty($_POST['checkbox'])) {
  60. echo '';
  61. } elseif (isset($_POST['checkbox']) && $_POST['checkbox'] == 1) {
  62. echo 'Języki obce <br />';
  63. }
  64. //koniec 7
  65.  
  66. //początek 8
  67. if (empty($_POST['checkbox'])) {
  68. echo '';
  69. } elseif (isset($_POST['checkbox']) && $_POST['checkbox'] == 1) {
  70. echo 'Dodatkowy początek <br />';
  71. }
  72. //koniec 8
  73.  
  74. ?></pre>



Proszę o pomoc smile.gif

sam znalazłem odpowiedź wink.gif tak jakby ktoś szukał a nie wiedział to całą tabele trzeba dać w <form action="?"> nie pojedynczo tak jak ja to robiłem haha.gif