From:             mark dot lynch at crowley dot com
Operating system: win2003
PHP version:      5.2.6
PHP Bug Type:     IIS related
Bug description:  CCS event on button not working

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 -->&nbsp;</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 bug report at http://bugs.php.net/?id=46475&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=46475&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=46475&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=46475&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=46475&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=46475&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=46475&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=46475&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=46475&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=46475&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=46475&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=46475&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=46475&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=46475&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=46475&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=46475&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=46475&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=46475&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=46475&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=46475&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=46475&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=46475&r=mysqlcfg

Reply via email to