How to Submit a HTML form automatically ?

QuestionsCategory: PHP QuestionsHow to Submit a HTML form automatically ?
Rajat Mathur Staff asked 8 months ago

How can I submit a form automatically If a particular condition is true. I am developing an application in PHP.

1 Answers
Slide Scope Staff answered 8 months ago

You can submit a form automatically using Javascript.
If a condition is true you can tell your program to execute these lines
<script type=”text/javascript”>
    document.getElementById(‘form3’).submit(); // SUBMIT FORM
Here form3 is the ID of that form which you want to submit automatically.

Your Answer

2 + 14 =