Re: [PHP] Onclick and PhP

2001-08-15 Thread Renze Munnik

On Wed, Aug 15, 2001 at 11:45:03AM +0200, Flugel wrote:
 When a page is loaded the php code is being executed, is this also possible
 for an onclick event? If so how do I do that?
 
 tnx!


No. PHP is server-side, not client-side like onclick (JS). The only
way to do things like that is:

onclick=window.location.href='blahblahblah.php';

-- 

* RzE:

-- 
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
-- H: +31 23 5516190
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
--
-- http://www.datalink.nl
-- 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Onclick and PhP

2001-08-15 Thread Flugel

Is it also possible for the output of that php-page (MySQL query) to be
displayed in a layer on the page where the button is located?

Renze Munnik [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 On Wed, Aug 15, 2001 at 11:45:03AM +0200, Flugel wrote:
  When a page is loaded the php code is being executed, is this also
possible
  for an onclick event? If so how do I do that?
 
  tnx!


 No. PHP is server-side, not client-side like onclick (JS). The only
 way to do things like that is:

 onclick=window.location.href='blahblahblah.php';

 --

 * RzE:

 -- 
 -- Renze Munnik
 -- DataLink BV
 --
 -- E: [EMAIL PROTECTED]
 -- W: +31 23 5326162
 -- F: +31 23 5322144
 -- M: +31 6 21811143
 -- H: +31 23 5516190
 --
 -- Stationsplein 82
 -- 2011 LM  HAARLEM
 --
 -- http://www.datalink.nl
 -- 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Onclick and PhP

2001-08-15 Thread Renze Munnik

On Wed, Aug 15, 2001 at 11:56:42AM +0200, Flugel wrote:
 Is it also possible for the output of that php-page (MySQL query) to be
 displayed in a layer on the page where the button is located?


Should be... But unfortunately I don't have enough time to figure it
out for you at the moment. Sorry!

-- 

* RzE:

-- 
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
-- H: +31 23 5516190
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
--
-- http://www.datalink.nl
-- 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]