|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-11-03 22:04 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 20:00:01 2025 UTC |
Description: ------------ I have recently upgraded my OS from windows 2000 to windows 2003. In the process we upgrade our php from 5.1.4 to 5.2.6 as 5.1.4 did not work with 2003. We have found that our only page which uses standard html button does not bind to its event handler on the server. $Login->DoLogin->CCSEvents["OnClick"] = "Login_DoLogin_OnClick"; The function "Login_DoLogin_OnClick" never gets called. Is there a feature I need to install to get this working. All the other CCS event binding seem to be work, Load, unload type etc. Mark. Reproduce code: --------------- <?php function BindEvents() { global $Login; $Login->DoLogin->CCSEvents["OnClick"] = "Login_DoLogin_OnClick"; } function Login_DoLogin_OnClick() { echo("<p>Here2<p>"); die(); } ?> <html><head></head><body> <form method="post" action="{Action}" name="Login"> <input name="DoLogin" type="submit" value="Login" ><!-- END Button DoLogin --> </td> </form></body></html> <?php BindEvents(); ?> Expected result: ---------------- The Page should show the message "Here2" Actual result: -------------- Page just refreshes and displays the button.