how can i redirect like asp

Reply

Join Date: Oct 2007
Posts: 5
Reputation: comask is an unknown quantity at this point 
Solved Threads: 0
comask comask is offline Offline
Newbie Poster

how can i redirect like asp

 
0
  #1
Oct 7th, 2007
i need to redirect to other page with out using header if it is not possible tell me how can i use header with relative url plz n 10q
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 1,227
Reputation: kkeith29 has a spectacular aura about kkeith29 has a spectacular aura about kkeith29 has a spectacular aura about 
Solved Threads: 167
kkeith29's Avatar
kkeith29 kkeith29 is offline Offline
Nearly a Posting Virtuoso

Re: how can i redirect like asp

 
0
  #2
Oct 7th, 2007
why don't you use a meta refresh:

  1. echo '<meta http-equiv="refresh" content="2;url=relativeurl.html">';
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 494
Reputation: Puckdropper is an unknown quantity at this point 
Solved Threads: 21
Puckdropper Puckdropper is offline Offline
Posting Pro in Training

Re: how can i redirect like asp

 
0
  #3
Oct 7th, 2007
You can build your absolute URL from PHP-supplied functions. Take a look at PHP.net's header page, under "Notes" and above the comments.

http://www.php.net/header
www.uncreativelabs.net

Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 52
Reputation: ajay_tabbu is an unknown quantity at this point 
Solved Threads: 0
ajay_tabbu's Avatar
ajay_tabbu ajay_tabbu is offline Offline
Junior Poster in Training

Re: how can i redirect like asp

 
0
  #4
Oct 8th, 2007
I can use header function.
  1. header('Location: <a rel="nofollow" class="t" href="http://www.example.com/'" target="_blank">http://www.example.com/'</a>)
  2.  
for more information see this
Last edited by ajay_tabbu; Oct 8th, 2007 at 3:59 am.
i m oblised for all member of daniweb.as helping me every time.this is best site for those who want to learn themself.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC