Botturn PHP Programing

All About PHP, Tutorials, Scripts, Video Lessons, Forums, Downloads


TUTORIAL - Redirect via PHP

Posted by admin On March - 31-2009

To redirect the user through php is pretty easy to just put a page named index.php in the root of the server with the following code:

? Download index.php
  Php
 / / Set the destination URL where http://www.pagina-de-destino.com
 "location:http://www.pagina-de-destino.com" ) ; header ("location: http://www.pagina-de-destino.com");
 ?> 

And so the user ready access to your site will be redirected to the page you want!

Popularity: 10% [ ? ]

Related posts Brought to you by Yet Another Related Posts Plugin .

2 Responses to "TUTORIAL - Redirect via PHP"

  1. Luis Matos says:

    Dude you need to redirect that page to me I can not take a look. in the code.

    <?
    session_start ();
    $ Subject = $ _POST ['subject'];
    $ Cod = $ _POST ['cv'];
    $ Mess = "Name :".$_ POST ['name']." \ N ". $ _POST ['Mens'];
    $ Email = $ _POST ['email'];
    if ($ _SESSION ['cv']==$ cod) {
    mail ('ceent@ceent.com.br', $ subject, $ mess, "From:". $ email);
    echo ";
    session_destroy ();
    Else {}
    echo 'Error! Enter the code correctly! Try Again ';
    session_destroy ();
    }
    ?>

  2. admin says:

    I did not understand what to do ...

Leave a Reply