Does php work with onClick in an html input statement?
<HTML>
<input type="button" name="add_pictu re" value="Add another picture"
onClick="<?php picture_count() ; ?>">
I want to call the function picture_count() when button labeled "Add another
picture" is clicked in HTML
I do not want to use submit in place of button since I do not want to submit
the form at this time.
With the above statement, I receive an error expected ";" and the function
is not called.
Thanks!
<HTML>
<input type="button" name="add_pictu re" value="Add another picture"
onClick="<?php picture_count() ; ?>">
I want to call the function picture_count() when button labeled "Add another
picture" is clicked in HTML
I do not want to use submit in place of button since I do not want to submit
the form at this time.
With the above statement, I receive an error expected ";" and the function
is not called.
Thanks!
Comment