Re: Can Event Handlers Trigger PHP Code?

From: Date: Thu, 14 Mar 2002 19:45:32 +0000
Subject: Re: Can Event Handlers Trigger PHP Code?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-88562@lists.php.net to get a copy of this message
No, because 'activation' of php is done by the server. PHP is a server side language. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 "Dr. Shim" <ultimatezzz@hotmail.com> wrote in message news:20020314191106.55724.qmail@pb1.pair.com... > My question is can event handlers on form objects trigger PHP code? > > <input type="submit" name="submit" value="Submit Form" > onclick='PHP CODE > HERE'> > > Or even an "onsubmit" event handler on forms? > > If something like this is possible, could any of you tell me how? I've > tried, and tried. I've used PHP tags inside the event handler > > <input type="submit" name="submit" value="Submit Form" > onclick='<? PHP CODE > HERE ?>'> > > But the result is that the event handler is blank > > <input type="submit" name="submit" value="Submit Form" > onclick=''> > > since the interpreter hides any PHP code. Thus nothing happens on the event. > > > > > Any help is appreciated. > >

« previous php.general (#88562) next »