phpinclude_start just gets eval'd and the resulting output is sent to the page being built when the output is assembled.
Colicab, you have a javascript function there that is attempting to output php to be eval'd. That can not work. The javascript is not going to even see the opening and closing PHP tags. As far as the javascript is concerned, the if/else contains no code to be executed.
You talk about a variable named '$mystyle' and a URL param named 'styleid'. Could you explain further what you are trying to do in your template/PHP-side?
|