PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old August 3rd, 2002, 03:18 PM
James_812 James_812 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 1 James_812 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
How do u make pages redirect like join.php?EF2

How can u make it goto different pages use ?Yourpage

So like If it does join.php?EF2 it acctually goes to page joinef2.php

How would i do that..

Reply With Quote
  #2  
Old August 3rd, 2002, 03:26 PM
D1NGO D1NGO is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Perth, Australia
Posts: 221 D1NGO User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: How do u make pages redirect like join.php?EF2

well i presume you have a signup form, and they have a site or something they enter? you could do this:
php Code:
Original - php Code
  1.  
  2. //instead of the page being join.php?EF2 you should make it join.php?site="thier site address"
  3.  
  4. <a href="<?= $_GET['site'] ?>">Their Page</a>


hope that made some sense chief

Reply With Quote
  #3  
Old August 3rd, 2002, 05:18 PM
sethadam1 sethadam1 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Orlando, FL
Posts: 223 sethadam1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: RE: How do u make pages redirect like join.php?EF2

Actually, here's another way to do it. If you want to it just be a ? in the URI, you can make it look like this:

php Code:
Original - php Code
  1.  
  2. //make your URL: join.php?codewalkers.com
  3.  
  4. <?
  5. $sitelink = $QUERY_STRING;
  6.  
  7. echo "<a href="http://www." . $sitelink;
  8. echo "">" . $sitelink . "</a>";
  9. ?>




Reply With Quote
  #4  
Old August 3rd, 2002, 11:54 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: How do u make pages redirect like join.php?EF2

THX

Reply With Quote
  #5  
Old August 4th, 2002, 03:01 AM
farout farout is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 7 farout User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: How do u make pages redirect like join.php?EF2

You can also use PHP's header function:

Code:
header("Location: joinef2.php");



Reply With Quote
  #6  
Old August 4th, 2002, 12:35 PM
jorgen jorgen is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Hardenberg, Holland<marquee>
Posts: 284 jorgen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: How do u make pages redirect like join.php?EF2

You can only use the header function if there is not yet any browseroutput, else you'll get this message:
headers already send...

Reply With Quote
  #7  
Old August 9th, 2002, 05:17 AM
Emperor_Jazzy Emperor_Jazzy is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Melbourne, Vic, Aus
Posts: 7 Emperor_Jazzy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: How do u make pages redirect like join.php?EF2

Extending the initial question. How does one automatically send a user to a page AFTER authentication has been achieved.

Example:

Login Page

Username and Password exist and are correct.
I now want to send the user to pref.php instead of staying at login.php

Ideas would be very handy at this time.

Jazzy

Reply With Quote
  #8  
Old August 9th, 2002, 07:47 AM
siteworkspro.com siteworkspro.com is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Sydney, Australia
Posts: 92 siteworkspro.com User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to siteworkspro.com Send a message via AIM to siteworkspro.com
RE: How do u make pages redirect like join.php?EF2

you could use meta tags, or if no header output

header("Location: http://www.name.com");

so basically something like this

if($user == "username" || $password = "secret")
{
header(Location:>>)
}
else
{wrong password}

thats a 5 second way how to do it

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > How do u make pages redirect like join.php?EF2


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway