Jump to content

<tr> does not seem to work!


jeff5656

Recommended Posts

Why on earth doe the cell "Card No." not go to row number 2 and it stays on the same line as "Your name"? I have added a <tr> and it STILL stays on same line. How is this possible?

 

<form id="cin" name="cin" method="post" action="">
  <table><tr>
  
  <th>Your Name</th>
  <td><input type="text" name="your_name" /></td>
  <tr><td></td></tr>
  <th>Card No.</th>
  <td><input type="text" name="card_no" id="card_no" /></td>

</form>

The above code displays

 

Your Name                Card No.

instead of

Your Name

 

 

 

 

 

Card No.

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/99386-does-not-seem-to-work/
Share on other sites

You never ended the first <tr>

I will bold the part you must add.

 

<form id="cin" name="cin" method="post" action="">
  <table><tr>
  
  <th>Your Name</th>
  <td><input type="text" name="your_name" /></td>[b]</tr>[/b]
  <tr><td></td></tr>
  [i]<tr>[/i]<th>Card No.</th>
  <td><input type="text" name="card_no" id="card_no" /></td>[i]</tr>[/i]

</form>

 

Also, after you have <th>Card no</th>...blah blah blah

 

You never have that in a row. So the italicized part is the part you must add to make it into a new row. Modify if I got it wrong. You aren't coding the tables properly

Link to comment
https://forums.phpfreaks.com/topic/99386-does-not-seem-to-work/#findComment-508560
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.