| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 77131 | 2007-02-28 00:05:00 | PHP echoing out html code so that is formatted | Morgenmuffel (187) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 528765 | 2007-02-28 00:05:00 | I'm stuck What is happening is that when i get php to spit out my code it comes out like this (when I do a view source on the code) <table><tr><td>blablabla</td></tr></table> when what i want is for it to come out like <table> <tr> <td>blablabla</td> </tr> </table> Any help would be appreciated |
Morgenmuffel (187) | ||
| 528766 | 2007-02-28 00:29:00 | I'm not too familar with PHP, but I remember reading at one stage that you can use escape characters to do stuff like that: eg. \t to tab (indent), \n to go to a new line. So something in the echo statement like (can't guarantee that it works, but it's worth a try): <table>\n\t<tr>\n\t\t<td>blablabla</td>\n\t</tr>\n</table> |
somebody (208) | ||
| 528767 | 2007-02-28 00:49:00 | Thanks for that somebody rather ironically the code layout actually seems to be working now and i have no idea of what changes i made to it |
Morgenmuffel (187) | ||
| 1 | |||||