ollie007 Posted June 21, 2009 Share Posted June 21, 2009 ok how do i add html to php source.... do i do an echo or print or add a joining variable and how much html can i add to one line?? $var= 'html'; $var.='extra html'; return $var; Quote Link to comment Share on other sites More sharing options...
trq Posted June 21, 2009 Share Posted June 21, 2009 do i do an echo or print or add a joining variable Its entirely up to you. and how much html can i add to one line?? There is no solid limit. I guess it would depend on your machines memory but in reality, you would run out of text before you ran out of memory. Quote Link to comment Share on other sites More sharing options...
phant0m Posted June 21, 2009 Share Posted June 21, 2009 well, you need to print the text at some time. "return" will not print your html. Also, you can close you PHP area with ?>, then write some html, and reopen PHP. This also works with if, while etc. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.