X
Xerxes
Hi,
I am trying to submit a form when a non-submit button is clicked!
I have:
<input name="add_dev" type="button" value="Add Device" onClick="
this.form.action='<?php echo $_SERVER['PHP_SELF']?>';
this.form.submit();">
When I run it, it says:
this.form.submit is not a function.
(I tired document.form_name.submit(), same thing).
I already have a "submit" button that submits the form to the file
specified in "Action".
Thanks for your help.
I am trying to submit a form when a non-submit button is clicked!
I have:
<input name="add_dev" type="button" value="Add Device" onClick="
this.form.action='<?php echo $_SERVER['PHP_SELF']?>';
this.form.submit();">
When I run it, it says:
this.form.submit is not a function.
(I tired document.form_name.submit(), same thing).
I already have a "submit" button that submits the form to the file
specified in "Action".
Thanks for your help.