[nycphp-talk] Header() Redirect
tuon1 at netzero.net
tuon1 at netzero.net
Thu Jun 11 21:56:20 EDT 2009
Hi everybody!
Sorry, I deleted the last thread about the page redirection. This is the guy that needs help with the page redirection.
Here is an abreviated code that I wanted to accomplish:
<?php
if ( !isset($_POST['Username']) && !isset(_POST['Password']))
{
<form action="<?=$PHP_SELF?>" method="post">
<table>
<tr><td>Username</td><td><input type="text" name="Username" size="30"></td></tr>
<tr><td>Password</td><td><input type="password" name="Password" size="30"></td></tr>
<tr><td></td><td><input type="submit" value="Log in" id="submit"></td>
</tr>
</table>
</form>
}
else
{
// Handle the incoming Post array from Login form above
$LoginName = $_POST['Username'];
$LoginPass = $_POST['Password'];
//Validate code here
//If OK,
header("Location: http://www.example.com/myPage.php");
exit;
}
?>
Is there something is wrong?
I tested it and it didn't give any error, but didn't redirect the page either.
Any help?
Thanks!
Paul
____________________________________________________________
Click here for free information and resources about managing your inheritance.
http://thirdpartyoffers.netzero.net/TGL2231/fc/BLSrjnxQ00XjyIphwS4uGMYkr6ZRV0VpXdDmfbgB0IcJpIBFEIIs0U4bwdS/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20090612/ef3f9b61/attachment.html>
More information about the talk
mailing list