• 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

OctoberCMS / Anonymous Global Scope

Statement that checks whether a URL contains a particular path?

How can I make a full text index of the column?

Select option from dropdown menu with PHP and mySql

Can't call javascript alert alertify library from PHP

PHPExcel file download using AJAX call

WAMP Virtual Host not working

Laravel no logout option from menu after successfull login

Execute only one time and then wait set period of time before executing again

Refresh specific HTML content that retrieves data from MySQL

Laravel 5.1 xmlHttpRequest AJAX POST TokenMismatchException

CSS file not imported in laravel blade view

protect images from being copied

How to prevent phpmailer sending embedded image as an attachment on Gmail?

Declaration of OMDb::query(string $statement) must be compatible with PDO::query

About Contact Privacy policy Terms and conditions