Jump to content
xisto Community
LuciferStar

header() redirection

Recommended Posts

<?php[br]if($_REQUEST['name']==NULL)[/br]{[br]   header("Location:?name=Guest");[/br]}[br]else[/br]{[br]?>[/br]<html>[br]  <head>[/br]  <title>Welcome</title>[br]  </head>[/br]  <body bgcolor=black>[br]  <?php[/br]     echo "<font color=gray><b>Hello,  ";[br]     echo $_REQUEST['name']."</b><p>";[/br]  ?><pre>[br]<?php[/br]     for($i=0;$i<10;$i++)[br]     {[/br]        for($j=0;$j<10;$j++)[br]        {[/br]           echo ($i*$j)."\t";[br]        }[/br]        echo "\r\n\r\n";[br]     }[/br]?><pre>[br]  </body>[/br]</html>[br]<?php[/br]}[br]?>[/br]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.