PHP

Moderators: None (Apply to moderate this forum)
Number of threads: 1854
Number of posts: 5039

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Making a URL Redirect Posted by nimboya on 27 Nov 2010 at 2:57 AM
Please i need someone to help me explain how i can create a URL redirect. What i actually mean is a short URL

for example when a user register's in your website. he/she will have a special name to open his personal page automatcally

for example www.example.com/myname

thank you
Report
Re: Making a URL Redirect Posted by stephen_sween on 3 Feb 2011 at 6:03 PM
Hello
Not sure what you mean but if your talking about a log in then when the login is correct you can us this to redirect to a page.

header("Location: myaccount.php");

Then use cookies or sessions to find who it is!

Just dont put it after <html> otherwise it want redirect! Better on a empty php page with no html!

Hope this helps!

Stephen
Report
Re: Making a URL Redirect Posted by johncooper on 7 Feb 2011 at 1:27 PM
header("Location:test.php");
header("Location:test.php",15);
Report
Re: Making a URL Redirect Posted by fairytales on 27 Mar 2011 at 1:31 AM
I agree with johncooper!
<a href="http://www.fairytaleslist.net">fairy tales</a><a href="http://www.privoshoesoutlet.com">privo shoes</a>



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.