Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [HTML]Problem z formularzem w tabeli
sebap123
post
Post #1





Grupa: Zarejestrowani
Postów: 253
Pomógł: 1
Dołączył: 26.08.2009
Skąd: Szczecin

Ostrzeżenie: (10%)
X----


Mam taki dosyć prosty formularz, który wygląda następująco:
  1. <table border="0">
  2. <form action="form.php" method="post" name="form">
  3. <tr>
  4. <!--grafika-->
  5. <td rowspan="5"><img src="images/ikonki/user.png" border="0px" /></td>
  6. <!--ID-->
  7. <td>
  8. <label for="mod_id">ID użytkownika:</label>
  9. <input type="text" name="mod_id" value="<?php echo"$id"; ?>" disabled="disabled" />
  10. </td>
  11. </tr>
  12. <tr>
  13. <!--login-->
  14. <td>
  15. <label for="mod_log">Login:</label>
  16. <input type="text" name="mod_log" value="<?php echo"$login"; ?>" disabled="disabled" />
  17. </td>
  18. </tr>
  19. <tr>
  20. <!--e-mail-->
  21. <td>
  22. <label for="mod_mail">E-mail:</label>
  23. <input type="text" name="mod_mail" value="<?php echo"$email"; ?>" disabled="disabled" />
  24. </td>
  25. </tr>
  26. <tr>
  27. <!--imie i nazwisko-->
  28. <td>
  29. <label for="mod_name">Imie i nazwisko:</label>
  30. <input type="text" name="mod_name" value="<?php echo"$imie_nazwisko"; ?>" disabled="disabled" />
  31. </td>
  32. </tr>
  33. <tr>
  34. <!--data urodzenia-->
  35. <td valign="top">
  36. <label for="mod_b_date">Data urodzenia:</label>
  37. <input type="text" name="mod_b_date" value="<?php echo"$data_urodzenia"; ?>" disabled="disabled" />
  38. </td>
  39. </tr>
  40. <tr>
  41. <!--adres-->
  42. <td valign="top">
  43. <label for="mod_adres">Adres:</label>
  44. <input type="text" name="mod_adres" value="<?php echo"$adres"; ?>" disabled="disabled" />
  45. </td>
  46. <!--uwagi-->
  47. <td valign="top">
  48. <label for="mod_uwagi">Uwagi:</label>
  49. <input type="text" style="width:150px;height:80px;" id="mod_uwagi" value="
  50. <?php echo"$uwagi"; ?>" disabled="disabled" />
  51. </td>
  52. </tr>
  53. </form>


No sam wygląda ok, ale jak sprawdzam kod źródłowy strony, to pokazuje mi, że form od razu się zamyka. Nie jestem pewien tylko jednej rzeczy, czy form mogę umieścić w taki sposób w tabeli. Jeśli nie to jak (oprócz divów, bo ich chce tutaj uniknąć) radzicie wrzucić to tutaj.

Ten post edytował sebap123 2.01.2011, 13:26:45
Go to the top of the page
+Quote Post
grabek93
post
Post #2





Grupa: Zarejestrowani
Postów: 73
Pomógł: 8
Dołączył: 23.09.2010

Ostrzeżenie: (10%)
X----


Nie możesz. Tabelę wstaw w całości w form i powinno być ok

O tak:
  1.  
  2. <form action="form.php" method="post" name="form">
  3. <table border="0">
  4. <tr>
  5. <!--grafika-->
  6. <td rowspan="5"><img src="images/ikonki/user.png" border="0px" /></td>
  7. <!--ID-->
  8.  
  9.  
  10. ...
  11.  
  12.  
  13. <input type="text" style="width:150px;height:80px;" id="mod_uwagi" value="
  14. <?php echo"$uwagi"; ?>" disabled="disabled" />
  15. </td>
  16. </tr>
  17.  
  18. </form>
  19.  
  20.  



Ten post edytował grabek93 2.01.2011, 13:33:02
Go to the top of the page
+Quote Post
sebap123
post
Post #3





Grupa: Zarejestrowani
Postów: 253
Pomógł: 1
Dołączył: 26.08.2009
Skąd: Szczecin

Ostrzeżenie: (10%)
X----


Ok. Teraz działa, dzięki.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 19:31