Hi check this. That is one of my site pages. So I would like to hear about the code writing style. How it should be written?
I ask it because now when I found a need of javascript I don't know how to include it because the whole page is unbroken <?PHP ?> code. Please help me out with the way I'm writing. How should I write the code so I can include javascript?
Writting php page - my writting style.
Moderator: General Moderators
Re: Writting php page - my writting style.
Writing Javascript with PHP is no different than writing HTML with PHP. You can either echo strings from PHP as you are doing now or drop out of "parse" mode into "direct output" mode.
PHP Manual: Escaping from HTML
Edit: This post was recovered from search engine cache.
PHP Manual: Escaping from HTML
Edit: This post was recovered from search engine cache.
Last edited by McInfo on Tue Jun 15, 2010 11:30 pm, edited 1 time in total.
Re: Writting php page - my writting style.
Jep, I just found it too! Thank you anyway.