i had this script auto login after submit the link will change and i want to download the next page automatic what i should add after the last line here is my code
<?php
$homepage = file_get_contents('localhost/test/login.php');
echo $homepage;
?>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.3.min.js" ></script>
<script type="text/javascript">
$(function(){
$("input[name=email]").val("test@test.com");
$("input[name=password]").val("test");
$('#signin-form').submit();
});
</script>
this script is in another file named auto.php . so when i run it's work but after the submit the link localhost/login.php will redirect to localhost/index.php so what i should add to auto.php after submit to get the content of localhost/index.php
thank you