• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

How to submit a form when page loads using JavaScript?

javascriptphpjqueryformsjquery-events


PHP Snippet 1:

<script type="text/javascript">
   $(document).ready(function(){
       document.theForm.submit();
   });
</script>

Related Snippets

Get keys from associative array [duplicate]

Using spatie/media-library, how to rename a collection of uploaded files?

How to set dynamic `home` and `siteurl` in WordPress?

Star rating with half star support

Why do I have invalid argument supply for foreach in Laravel for json response? [duplicate]

best way to store error messages in Laravel (session or variable)

NGINX: connect() to unix:/var/run/php7.2-fpm.sock failed (2: No such file or directory)

Distribute array row data to make multiple new rows

Explode not working properly with dash

How to show a popup modal in codeIgniter?

"Mixed content blocked" when running an HTTP AJAX operation in an HTTPS page

How to convert a carbon into string, to take the date only?

How do I call a php file with axios?

How to create a cookie to store the timestamp of when a page is first loaded with php

Yii Ajax Submit button

About Contact Privacy policy Terms and conditions