$('#submit').click(function(event){
//code to do php include(otherpage.php)
});
How am i able to archieve this with a submit button with id=submit?
$('#submit').click(function(event){
//code to do php include(otherpage.php)
});
How am i able to archieve this with a submit button with id=submit?
JavaScript runs on the client, PHP on the server.
The only way to "call" PHP from your JavaScript is to use techniques like AJAX.