redirect

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sadhana
    New Member
    • Oct 2006
    • 6

    redirect

    can you explain how to redirect to another page in php or by using java script.
    i tried with header(location :"url") but its not working out.
  • vituko
    New Member
    • Dec 2006
    • 48

    #2
    php : it's right, header('locatio n:URL') ;
    Headers must be sent before any content!!
    html : <meta http-equiv="refresh" content="SECOND S;url=URL">
    javascript : [window.]location.href=U RL ;

    Comment

    • vituko
      New Member
      • Dec 2006
      • 48

      #3
      php : header("locatio n:URL") or header ("location:".$U RL), the argument must be a string, it can be your problem.

      Comment

      • sadhana
        New Member
        • Oct 2006
        • 6

        #4
        <meta http-equiv="refresh" content="SECOND S;url=URL">
        i worked out this. but its taking much time to go to another page even i have
        mentioned 0 seconds, also before going to that page one more page is loading inbetween the requests. i cant understand why its happening so.

        Comment

        Working...