Use a submit <button> instead of <input> button
forms, html, javascript, jquery, php
Solution
You can use the `type="submit"` like property of button
<button type="submit" name="<?php echo $name; ?>">Submit</button>
Problem
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 ?