• 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

php echo remove slashes from url [duplicate]

Symfony - "framework.test" config is not set to true

Upload a file Using PHP and JavaScript

Can't exclude directories from .htaccess mobile redirect?

Undefined variable in Laravel 8 project (php 7.4)

Laravel 5.1 how to use {{ old('') }} helper on blade file for radio inputs

how to make my own auto increment in php?

Installing Composer - Internal Error

mysql_result is defined but mysql_free_result warns it expected a resource

Changing font color in javascript

Adding the custom page with add_menu_page function on Wordpress

Only on Firefox "Loading failed for the <script> with source"

Fatal error: Uncaught mysqli_sql_exception: Unknown database 'test' in ... (How do I fix that? Using PHP)

PHP - Check if string contains words longer than 4 characters, then include "+ *", and for those shorter than 4 characters include only "*"

How to insert data from multiple select dropdown values into database?

About Contact Privacy policy Terms and conditions