Posting HTML or PHP into an entry
Posted: Wed Nov 16, 2005 5:28 am
Forgive me if I explain this poorly, my brain is off and it is past my bedtime...
I created some div elements in an entry and I was hoping I could use some PHP to keep track of it
for example.
Also, when I add HTML like this...
the html comes out like this:
...which throws off my divs (the line breaks do).
Basically, I am not familiar with a way to input HTML and PHP correctly so HTML does not receive any <BR> lines and PHP is parsed okay (simple PHP, nothing crazy).
I'm still new to S9Y, so it may be something obvious..in which case..go easy on me
thanks! loving this engine so far
I created some div elements in an entry and I was hoping I could use some PHP to keep track of it
Code: Select all
<? $var = 50 ?>Also, when I add HTML like this...
Code: Select all
<div>
<div 2>stuff in div2
</div>
</div>Code: Select all
<div><br />
<div 2>stuff in div2<br />
</div><br />
</div>Basically, I am not familiar with a way to input HTML and PHP correctly so HTML does not receive any <BR> lines and PHP is parsed okay (simple PHP, nothing crazy).
I'm still new to S9Y, so it may be something obvious..in which case..go easy on me
thanks! loving this engine so far