Auto click Save button

Good day to all.

We have a PHP page, on the page a form, with inputs, the value of which is transferred to another page by pressing the save button.

  1. Is it possible to make it so that if the save button is not pressed, it will automatically fire after the number of seconds I specified? (the number of seconds you want to read from a variable)?
  2. Can I save a button from a button and make it a link??

Answer 1, authority 100%

  1. This is where JavaScript works best.
  2. Yes, you can. Again with JavaScript using the onclick attribute.

For example:

<form name="formid">
<a href="#" onclick="document.formid.submit();">!</a>
</form>

Answer 2, authority 50%

<script>
function subm() {
document.forms['form1'].submit();
}
setTimeout(subm, 1000); // 1000 = 1 
</script>
<form id="form1" name="form1" method="post" action="">
  <label>
  <input type="text" name="textfield" id="textfield" />
  </label>
  <label>
  <input type="button" name="go" id="go" value="Submit" onclick="subm()" />
  </label>
</form>