> > i want an onlick event to call a php function. is this > possible in the same way that javascript permits > onlclick="someFuntion(arg)" ?
PHP is server-side scripting language and you can't call php function like functions of JScript. However, you could generate by PHP code of JScript and include it into HTML document. This JScript count then serve onclick events. If clicking items doesn't change anything at server-side it it good idea. If does, there may be needed reloading of this web page and then PHP modifies it. > > how else can i call a php function which adds an item > to array via a text link? > If array ist stored at server-side update it with PHP. To send data via text link use GET method, which encodes all data in URL, such like this: http://www.somewhere.com/mygreatscript.php?username=BillyG If you want to make such links dynamically, do not forget to urlencode() content of variables (like $username in example above): echo "<A HREF=\"http://www.somewhere.com/mygraetscript.php?username=" . urlencode($username) . "\">" > > also does php have variables corresponding to the > document object model DOM, particularly i'm interested > in changing css positioning properties. > As server-side script, PHP does not have any objects, layers or anything dependent on browser... Its executed at server so if you want to change position in CSS you can but only while generating HTML code. If you want to do it later, use JScript or something. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php