The script is a client browser script where as the php is a server side script.
Not sure if that answers your questions ?
Regards Ian Porter
www : www.codingfriends.com
On 4 Feb 2010, at 21:20, Chris G cl@isbd.net wrote:
I've been trying to find out the rules about embedded scripting in HTML, things like PHP and JavaScript. It seems like it doesn't really have any rules!
Part of the problem is that Google makes it impossible to search for anything other than alphanumerics so you can't search for things like
<SCRIPT> or <?php. So, first question, is there *any* way now that Google rules the world to search for things like this? Moving on, how can one find what *actually* works inside a <SCRIPT> section in HTML? Is it only javascript that really works there in 'most' browsers or are there other possibilities? The other question is how does <?php work at all? I can't find anything that documents how or why it should allow PHP to do things. I'm maybe missing something obvious but given Google's total inability to look for such things doing any sort or searching is a bit difficult. I have O'Reilly books on HTML and PHP but neither of them really addresses how this works. I do realise that <SCRIPT> starts client side scripting so is limited by what's implemented in browsers, however it is at least a 'proper' HTML element. <?xxx seems more of a bodge, is it actually a bodge or is there some smeantic/syntactic logic to it? -- Chris Green _______________________________________________ main@lists.alug.org.uk http://www.alug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!