i am trying to develop a website and i want that after entering correct username and password desired page should open. how i can achieve this.
+2
A:
if(...)
{
// code to verify login...
header("Location: http://page_to_forward_to/");
}
else { ... }
Hope this is what you are looking for
adam
2010-02-15 14:17:13
A:
you can use the header fuction:
header("location: www.example.com/yourpage.php");
Other possibility is to use javascript:
<script>
window.location = 'yourpage.php';
</script>
Sarfraz
2010-02-15 14:17:14
+1 for `exit()` after `header()`.
chelmertz
2010-02-15 15:42:16