View Single Post

  #2 (permalink)  
Old 05-23-2006
Rik
 
Posts: n/a
Default Re: Having a problem mixing HTML and PHP

tony@tony.com wrote:
> <input type=button name="btOne" value="Click-Me" id = "mButton"
> onClick = "<?PHP verify(); ?>" >
>
> I did think you could do this - am I wrong?


Yes, you are

> (Incidently I'm also having trouble getting onBlur to work in a
> similar form with PHP.)


PHP != javascript.

It runs on the server not onthe clients machine, so simply speaking as soon
as the content is sent it's job is done. It can't tell what you are doing in
a html page. If you want PHP to handle (new) values, you will have to send
them to the server. In most cases this means requesting a new page.

Grtz,
--
Rik Wasmus


Reply With Quote