• 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

How to validate tin and cst using PHP?

Limit login attempts in Laravel 5.7

Open a popup box after receiving result from ajax

Printing more than one array using print_r or any other function in php

PHP: How to raise number to (tiny) fractional exponent?

PHP: Print caught exception like Xdebug

Custom Button next to “ADD TO CART” button of WooCommerce based on Product Type

Creating live search with AJAX and CodeIgniter

Getting values for an enum?

OctoberCMS / Anonymous Global Scope

Convert regular text to array using notepad++

Unit (real unit test) of test laravel relationship

Show date difference as "20" instead of "20 years ago"

Exception thrown during the rendering of a template("Parameter "id" for route "url" must match "[^/]++" ("" given) to generate a corresponding URL.")

java URL working on browser but not in client program

About Contact Privacy policy Terms and conditions