Need Help Please

Discussion in 'PHP' started by christopher.mah, Jun 11, 2009.

  1. #1
    So far i have this

    meta http-equiv="REFRESH" content="5; url=ADDRESS
    HTML:
    How would i get the ADDRESS part to grab parts of the url. something like i have a page domain.com/index.html?r=http://domain1.com

    I want this page to be a redirect page but i want it easy so all i have to do is just add the link to the address or something as long as i dont have to make multiple pages. Somebody help much would be appreciated.
     
    christopher.mah, Jun 11, 2009 IP
  2. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #2
    That wont work with html but with php it will be like this

    meta http-equiv="REFRESH" content="5; url=<? echo $_GET["r"] ?>

    and then u just go to index.php?r=http://domain1.com
     
    Bohra, Jun 11, 2009 IP
  3. xDragonZ

    xDragonZ Greenhorn

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #3
    Try this

    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    	<meta http-equiv="refresh" content="<?=$redirtime;?>; URL=<?=$url;?>">
    	<title><?=$sitename;?></title>
    	<style type="text/css">
    	html {
    		background: #000;
    	}
    	body {
    		background: #404040;
    		border: 1px solid #666;
    		color: #999;
    		font: 14px "Lucida Grande", "Lucida Sans Unicode", tahoma, verdana, arial, sans-serif;
    		margin: 5% 10%;
    		text-align: center;
    	}
    
    	a {
    		color: #FF8301;
    	}
    
    	h1 {
    		color: #EEE;
    	}
    
    	#container {
    		background: #292929;
    		line-height: 2.4;
    		padding: 1em;
    	}
    
    	p#url {
    		font-weight: bold;
    		overflow: hidden;
    		width: 100%;
    	}
    
    	</style>
    </head>
    
    <body>
    
    	<h1><?=$sitename;?></h1>
    	<div id="container">
    		<p>Please wait while you're being redirected to ...<br />
    		<p id="url"><a href="<?=$url;?>"><?=$url;?></a></p>
    		<hr />
    
    		<p><a href="<?=$siteurl;?>"><?=$sitename;?></a></p>
    	</div>
    
    </body>
    </html>
    
    
    PHP:
    i cant give you the full code now....

    go online find anon.. script
     
    xDragonZ, Jun 11, 2009 IP
  4. ezprint2008

    ezprint2008 Well-Known Member

    Messages:
    611
    Likes Received:
    15
    Best Answers:
    2
    Trophy Points:
    140
    Digital Goods:
    1
    #4
    ezprint2008, Jun 11, 2009 IP