You are here: Re: Having a problem mixing HTML and PHP « PHP Programming Language « IT news, forums, messages
Re: Having a problem mixing HTML and PHP

Posted by Rik on 12/18/08 11:48

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация