You've got some serious confusion going here. 'tmpteller'
means nothing to php. It's not even inside the php
markers, but if you did turn things around and have php
write all the content via echo(), it would still be nothing
but more text as far as PHP is concerned.
You need a clearer understanding of how PHP works. When
the client requests a PHP page, it gets processed by php
at the server instead of just being sent straight from the
filesystem to the browser. But if you called a file .PHP
but didn't include any php tags in it, then it would eventually
flow to the browser byte-by-byte identical to the way it
would be send if it were called .html.
All php is doing is generating (or passing through untouched)
html that gets sent to the browser. Of course that can contain
javascript or anything else you want, but at the stage of PHP
processing it, it's just text being produced as far as PHP
is concerned--it certainly doesn't execute any of the javascript.
Maybe people need to take a short course in 3270/5250 block-
mode terminals before they start web programming. It's very
similar in it the way it operates--the server (or mainframe)
generates a set of data that is sent to the screen. The screen
then allows the user to interact with the data, completely
without the server/mainframe being involved in any way.
Then, when the user presses the enter key/send button,
the entire set of results is sent back to the server/mainframe.