Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Redirection after logging in?
Index -> Programming, PHP -> PHP Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Civik




PostPosted: Fri Sep 14, 2007 6:13 pm   Post subject: Redirection after logging in?

Im trying to write a simple login script that if you put in the right username and password, you get redirected to a page such as google.ca for an example, but if not it just says wrong password.

I have everything working so far except for the redirection part.
Sponsor
Sponsor
Sponsor
sponsor
PaulButler




PostPosted: Fri Sep 14, 2007 7:09 pm   Post subject: RE:Redirection after logging in?

Use the location header

php:

header("Location: http://absolute-path.to/new/location.html");
Display posts from previous:   
   Index -> Programming, PHP -> PHP Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: