Posted by tony on 11/06/19 11:48
I am trying to use a form with a button that calls a verification script
but can't seem to get the script to run at all - can anyone tell me if
this SHOULD work in a forms onCLick or have I got the syntax wrong?
The function is previously included with include_once('library.php');
This seems to work ok. I dont get any php errors if I turn on reporting.
The function checks out ok on its own. I've also tried a simple echo with
no luck. the page is called myform.php (not .html)
The form button has:
<input type=button name="btOne" value="Click-Me" id = "mButton" onClick =
"<?PHP verify(); ?>" >
I did think you could do this - am I wrong?
(Incidently I'm also having trouble getting onBlur to work in a similar
form with PHP.)
thanks.
Navigation:
[Reply to this message]
|