You don't actually *use* PHP and JavaScript on the same page as PHP is
server-side and JavaScript is client-side. With PHP you construct an HTML
document which may or may not contain any JavaScript, and after sending this
document to the client browser the PHP process dies. Whatever happens in the
client browser is outside the control of PHP until another HTTP request is
generated.
This is Tony Marston's web site, containing personal information plus pages devoted to the Uniface 4GL development language, XML and XSL, PHP and MySQL, and a bit of COBOL
"leegold2" <leegold@nospam .net> wrote in message
news:sp8jd.2196 $DB.1685@trnddc 04...[color=blue]
> Can anyone recommend links that explain esp. show examples of how to use
> PHP and javascipt in the same page? Thanks. Lee G.[/color]
Tony Marston wrote:[color=blue]
> You don't actually *use* PHP and JavaScript on the same page as PHP is
> server-side and JavaScript is client-side. With PHP you construct an HTML
> document which may or may not contain any JavaScript, and after sending this
> document to the client browser the PHP process dies. Whatever happens in the
> client browser is outside the control of PHP until another HTTP request is
> generated.
>[/color]
Well, here's one:
Comment