i want to submit a form with <button> instead of <input>.
I know a <button> cant handle the form like a submit <input> and i have to use the onclick method.
I tried several things but it doesn't work
<button name="<?php echo $name; ?>" onclick="document.<?php echo $this->action; ?>.submit()"> ... ( Action URL of the form )
<button name="<?php echo $name; ?>" onclick="document.iso<?php echo rand(); ?>.submit()">... ( name of the form )
<button name="<?php echo $name; ?>" onclick="window.location.href='<?php echo $this->action; ?>'">... ( Action url of the form )
Does someone know an answer ?
<input>" - you know wrong. Buttons submit forms.