See here normally your form will be submitted to test3.php page. But it will go to test1.php or test2.html. In test1.php you will get x=2 in $_GET also. See the example there you can change the method to get also. Currently it is set to post.