Page 1 of 1

Form Submit to New Window

Posted: Thu Jan 15, 2004 1:05 am
by phppick
Hi ,

I am having login page like this.. I want to validate this form before submit.. and if the user entered all values i want to submit this form values to New Window..

How can i do this??

And also i want to close parent window after login..

<html>
<head>
<title>Title</title>
<script type="text/javascript">
function valid()
{

}
</script>
</head>
<body>
<form name="the_form" method="post" action="" onsubmit="return valid();">
<table>

<tr>
<td>User name</td>
<td><input type="text" value="enter user" name="uname" /></td>
</tr>
<tr>
<td>Password</td>
<td><input type="text" value="enter password" name="pwd" /></td>
</tr>
<tr><td><input type="submit" value="Login" /></td></tr>
<tr><td> </td></tr>
</table>
</form>
</body>
</html>


Suggesstion Please,

Which is the Best Idea

1. Opening Project page in New Window if Login is Successful

or

2. Opening login verification.php in New Window, after user entered username and password

Please Suggest Me.. Thanks..

Posted: Thu Jan 15, 2004 8:21 am
by vigge89
<form target='_new'> works for me...

Posted: Thu Jan 15, 2004 11:13 am
by kettle_drum
why not just have the login form on the new window already?