I have a php question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sillysillyme
    Confirmed User
    • Jan 2004
    • 156

    #1

    I have a php question

    I am trying to have a link on a webpage to redirect to another webpage while not showing on the address on the browser using php , can someone help me out here. Thanks
  • RicardoB
    Confirmed User
    • Jan 2004
    • 2576

    #2
    What's wrong with metarefresh inside a frame?

    Comment

    • arial
      Confirmed User
      • Jul 2002
      • 4012

      #3
      PHP Code:
      <?
      if ($go = "1")
      header("Location: [url]http://website[/url]");
      :
      ?>
      Simple.

      Usage
      script.php?go=1

      Damn word filters
      Last edited by arial; 07-28-2004, 03:28 AM.

      Comment

      • sillysillyme
        Confirmed User
        • Jan 2004
        • 156

        #4
        Originally posted by RicardoB
        What's wrong with metarefresh inside a frame?
        I have no idea how to do that , I am new to php . all I know is html

        Comment

        • sillysillyme
          Confirmed User
          • Jan 2004
          • 156

          #5
          Originally posted by arial
          PHP Code:
          <?
          if ($go = "1")
          header("Location: [url]http://website[/url]");
          :
          ?>
          Simple.

          Usage
          script.php?go=1

          Damn word filters
          I cannot read that

          Comment

          • NickPapageorgio
            Confirmed User
            • Apr 2004
            • 8323

            #6
            I think what he is trying to block is the status bar message so the surfer can't see what's coming next from the click. Is that right? If so I think that can be controlled using just a little ja.va.scr.ipt.

            Comment

            • sillysillyme
              Confirmed User
              • Jan 2004
              • 156

              #7
              Originally posted by NickPapageorgio
              I think what he is trying to block is the status bar message so the surfer can't see what's coming next from the click. Is that right? If so I think that can be controlled using just a little ja.va.scr.ipt.
              no , i got it thanks

              Comment

              • mardigras
                Bon temps!
                • Feb 2003
                • 14194

                #8
                Here is a page that has a simple status bar message generator. Just put in what you want it to say, choose whether you want static or scrolling and click Generate and it gives you the HTML.

                http://htmlbasix.com/statusbarmessage.shtml
                .

                Comment

                • dgraf
                  Confirmed User
                  • Jun 2004
                  • 133

                  #9
                  Originally posted by arial
                  PHP Code:
                  <?
                  if ($go = "1")
                  header("Location: [url]http://website[/url]");
                  :
                  ?>
                  Simple.

                  Usage
                  script.php?go=1

                  Damn word filters
                  It is wrong.
                  At first, the condition will be always true and it will assign value "1" to the "$go" variable instead of evaluating the clause. The condition ($go = "1") should go with an extra equals sign. Moreover, PHP configuration on many servers has register_globals set to off, so you have to use $_GET['go'] instead of $go ... and in the end, the link itself is crippled by the board engine.

                  I will post example without the condition because this board cannot manage the code even in php or code section.

                  PHP Code:
                  header("HTTP/1.1 301 Moved Permanently");
                  header("Location: FULL-URL-HERE");
                  header("Connection: close"); 
                  
                  Last edited by dgraf; 07-28-2004, 03:58 AM.
                  Bright Porn | Webmasters | Free Galleries | Sponsors | Traffic Trades | Hardlinks

                  Comment

                  • dgraf
                    Confirmed User
                    • Jun 2004
                    • 133

                    #10
                    Btw, why it is disabled to write a link or two successive equals signs even in the section marked as code or php?

                    It is very hard to write an example for someone this way
                    Bright Porn | Webmasters | Free Galleries | Sponsors | Traffic Trades | Hardlinks

                    Comment

                    • TheMob?
                      Confirmed User
                      • Jan 2003
                      • 8584

                      #11
                      Originally posted by dgraf
                      Btw, why it is disabled to write a link or two successive equals signs even in the section marked as code or php?

                      It is very hard to write an example for someone this way
                      The answer is forty two.

                      Comment

                      • RicardoB
                        Confirmed User
                        • Jan 2004
                        • 2576

                        #12
                        Originally posted by sillysillyme
                        I have no idea how to do that , I am new to php . all I know is html
                        *LOL* that is HTML bro Load the page in a frame and refresh it with a meta refresh tag. Why use php for such a simple thing?

                        Comment

                        • dgraf
                          Confirmed User
                          • Jun 2004
                          • 133

                          #13
                          Originally posted by TheMob?
                          The answer is forty two.
                          But what is the basic question then?
                          Bright Porn | Webmasters | Free Galleries | Sponsors | Traffic Trades | Hardlinks

                          Comment

                          Working...