MLUG: RE: [MLUG] PHP OOP Question
RE: [MLUG] PHP OOP Question
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Robert West wrote:

> I'm writing a library to create websites in an object
> oriented environment within PHP (a website compiler of
> sorts).  When I create a button and produce the HTML I
> also want to create a javascript function named 
> (buton_name)_onClick().  I would like button_name to be the 
> name of the instance they created.

Then surely you want to use something like:

  $myfancybutton = new whateverclass("myfancybutton");

To pass the variable into your subroutine.

Russell.

_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members