Re: Having script ready in a PHP page

From: Date: Thu, 24 Aug 2000 04:44:45 +0000
Subject: Re: Having script ready in a PHP page
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-13300@lists.php.net to get a copy of this message
On Thu, 24 Aug 2000, scott wrote: > Hi Guys, > > In JavaScript you can define functions, and have only have them processed > when you want them, ie when a button is pressed. you just go > onClick="doFunction()", that'll do it. > > Can you do this in PHP. Have a php page, which is used to dynamically write > the content to the browser and then have 'functions' ready to handle what a > user does, rather than having to call new .php file?? Of course you can. A light perusal through the PHP manual may be helpful. For example, the basics on writing functions in PHP. http://zend.php.net/manual/functions.php Or, for the OOP side of things, classes and objects. http://zend.php.net/manual/language.oop.php Matt

« previous php.general (#13300) next »