#46475 [Opn->Bgs]: CCS event on button not working
ID: 46475
Updated by: johannes@php.net
Reported By: mark dot lynch at crowley dot com
-Status: Open
+Status: Bogus
Bug Type: IIS related
Operating System: win2003
PHP Version: 5.2.6
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2008-11-03 17:47:00] mark dot lynch at crowley dot com
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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46475&edit=1
Thread (2 messages)