How to make a certain buttom be clicked on the load of the page?
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script>
$("#submit").click(function() {
$("#submit").click();
});
</script>
</head>
<body>
<form action="Untitled-9.php" method="post">
<input type="text" name="name" value="dsa"/>
<input type="submit" name="submit" value="Register" />
</form>
<?php
$name = $_POST['name'];
echo $name;
?>
</body>
This is the code I have and I want when the page is loaded to press the button "Register" automatically