View Single Post
Old 08-16-2006, 09:47 AM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,530
sde is on a distinguished road
You can't. (unless you use AJAX, which I would not recommend before you understand how PHP works)

PHP only runs server-side. It is used to print text to the browser.

HTML/Javascript runs on the client (browser). By the time the HTML is drawn, PHP is done running.

You would have to request a new PHP page (submit an html form to a PHP page) to access PHP functions.
__________________
Mike
sde is offline   Reply With Quote