please use the forum's BBCode tags ([font=monospace][noparse]
<?php /* code goes here */ ?>
[/noparse][/font]).
It's difficult to read your code when it is not formatted.
I'm pretty sure mixing PHP and shtml is possible, but -off the top of my head- I can't imagine a situation where it would be desirable (i.e., where the benefits would outweigh the complication).
Beyond that, your question is still unclear. Your most recent post seems mostly unrelated to the one before it. Can you explain your situation clearly, and tell us what your specific goals and problems are?