Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] Niechciany odstęp.
Ytolziq
post
Post #1





Grupa: Zarejestrowani
Postów: 25
Pomógł: 0
Dołączył: 10.12.2010

Ostrzeżenie: (0%)
-----


Jak usunąć niechciany odstęp z tej tabeli?

Kod
                    echo '<tr>';

                echo '<td> Test </td>';
                echo '<td><select name="Test1"><option>Test1</option></select></td>';
                echo '<td><select name="Test2"><option>Test2</option></select></td>';
                echo '<td><select name="Test3"><option>Test3</option></select></td>';
                echo '</tr>';


(IMG:http://img152.imageshack.us/img152/5506/nowyobrazmapybitowej4.png)

Proszę o pomoc...
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Meferot
post
Post #2





Grupa: Zarejestrowani
Postów: 64
Pomógł: 0
Dołączył: 31.08.2009

Ostrzeżenie: (0%)
-----


colspan="3"
Znajdź go sobie w kodzie poniżej (IMG:style_emoticons/default/winksmiley.jpg)
Odpowiada to za łączenie kilku kolumn w wierszu w jedną.
  1. <?php
  2.  
  3. echo '<form action="" method="post">';
  4.  
  5. echo '<table border="0" align="center">';
  6.  
  7. echo '<tr>';
  8.  
  9. echo '<td> Test </td>';
  10.  
  11. echo '<td colspan="3"> <input type="text" name="Test" maxlength="25"> </td>';
  12.  
  13. echo '</tr>';
  14.  
  15. echo '<tr>';
  16.  
  17. echo '<td> Test1 </td>';
  18.  
  19. echo '<td><select name="Test2"><option>Test2</option></select></td>';
  20.  
  21. echo '<td><select name="Test3"><option>Test3</option></select></td>';
  22.  
  23. echo '<td><select name="Test4"><option>Test4</option></select></td>';
  24.  
  25. echo '</tr>';
  26.  
  27. echo '</table>';
  28.  
  29. echo '</form>';
  30.  
  31. ?>

Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 15.10.2025 - 23:28