Как мога да прехвърля този пример към друга страница празна страница http://www.w3schools.com/php/showphp.asp?filename=demo_form_validation_complete ?
<form action="..." method="post" onsubmit="target_popup(this)">
</form>
function target_popup(form) {
window.open('', 'formpopup', 'width=400,height=400,resizeable,scrollbars');
form.target = 'formpopup';
}
<?php
if(isset($_POST['submit'])) {
// your php code goes here
header('location:./welcome.php');
}
?>