T O P I C R E V I E W |
ikeas68 |
Posted - 19 May 2012 : 16:56:54 hello i want to do this
<?php function mYFunction() { echo "Works"; }?> </head> <body> <form> <INPUT TYPE=BUTTON OnClick="<?php myFunction(); ?>" VALUE="CLICK ME">
how i can have this code generated ? |
1 L A T E S T R E P L I E S (Newest First) |
s.dav |
Posted - 22 May 2012 : 09:00:42 The sample you posted does nothing useful; it simply replaces the "<?php myFunction(); ?>" string in your sample with "Works"... Simply add an onclick event to a button but don't expect that clicking the button will call your php fuction... In your sample the function will be called when the page loads... |