Hi, the problem is fixed. But this is how I sorted myself out.
I made all my buttons submit buttons. However, for each button, the onclick event is set to a specific boolean javascript function.
Hence, when the javascript function returns true, onlclick=true and the form is submitted.Other wise, no submission.
User Profile
Collapse
-
Javascript document.forms[0].submit() not submitting form values
Hello,
1) I have a php script A with several buttons(not submit) on a form.
2) On click of any of the buttons, a specific javascript function is called.
3) Depending on the outcome of the javascript function, a second php script, (set in the action property of the form) B is called with the document.forms[0].submit() function.
Problem: Javascript correctly references script B. However, I cannot reference...
No activity results to display
Show More
Leave a comment: