How to Submit a HTML form automatically ?

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

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

print
You might be interested in
1 Answers
Slide Scope Staff answered 10 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
</script>
Here form3 is the ID of that form which you want to submit automatically.

You might be interested in
Your Answer

18 + 13 =